2025-12-06 09:10:24 +08:00
|
|
|
|
package entity
|
|
|
|
|
|
|
|
|
|
|
|
import (
|
2026-02-24 16:24:47 +08:00
|
|
|
|
"gitea.com/red-future/common/beans"
|
2025-12-06 09:10:24 +08:00
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
const AdvertiserCollection = "advertiser"
|
|
|
|
|
|
|
|
|
|
|
|
// Advertiser 广告主实体
|
|
|
|
|
|
type Advertiser struct {
|
2025-12-31 11:04:55 +08:00
|
|
|
|
beans.MongoBaseDO `bson:",inline" json:",inline"`
|
|
|
|
|
|
Status string `bson:"status" json:"status"` // 状态:active、inactive、maintenance等
|
2025-12-06 09:10:24 +08:00
|
|
|
|
|
|
|
|
|
|
// 基本信息
|
|
|
|
|
|
Name string `bson:"name" json:"name"` // 广告主名称
|
|
|
|
|
|
ContactName string `bson:"contactName" json:"contactName"` // 联系人姓名
|
|
|
|
|
|
ContactPhone string `bson:"contactPhone" json:"contactPhone"` // 联系电话
|
|
|
|
|
|
ContactEmail string `bson:"contactEmail" json:"contactEmail"` // 联系邮箱
|
|
|
|
|
|
Company string `bson:"company" json:"company"` // 公司名称
|
|
|
|
|
|
Scale string `bson:"scale" json:"scale"` // 公司规模
|
|
|
|
|
|
|
|
|
|
|
|
// 证件信息
|
|
|
|
|
|
BusinessLicenseUrl string `bson:"businessLicenseUrl" json:"businessLicenseUrl"` // 营业执照URL
|
|
|
|
|
|
ICPLicenseUrl string `bson:"icpLicenseUrl" json:"icpLicenseUrl"` // ICP备案截图URL
|
|
|
|
|
|
OtherLicenseUrls []string `bson:"otherLicenseUrls" json:"otherLicenseUrls"` // 其他证件URL
|
|
|
|
|
|
|
|
|
|
|
|
// 财务信息
|
|
|
|
|
|
BankName string `bson:"bankName" json:"bankName"` // 开户银行
|
|
|
|
|
|
BankAccount string `bson:"bankAccount" json:"bankAccount"` // 银行账号
|
|
|
|
|
|
AccountName string `bson:"accountName" json:"accountName"` // 账户名称
|
|
|
|
|
|
|
|
|
|
|
|
// 合同信息
|
|
|
|
|
|
ContractId string `bson:"contractId" json:"contractId"` // 合同编号
|
|
|
|
|
|
ContractType string `bson:"contractType" json:"contractType"` // 合同类型
|
|
|
|
|
|
ContractUrl string `bson:"contractUrl" json:"contractUrl"` // 合同文件URL
|
|
|
|
|
|
SignDate int64 `bson:"signDate" json:"signDate"` // 签约日期
|
|
|
|
|
|
ExpireDate int64 `bson:"expireDate" json:"expireDate"` // 到期日期
|
|
|
|
|
|
|
2025-12-19 09:42:39 +08:00
|
|
|
|
// 审核状态
|
|
|
|
|
|
AuditStatus string `bson:"auditStatus" json:"auditStatus"` // 广告主状态:待审核、审核中、已通过、已拒绝、已冻结
|
2025-12-06 09:10:24 +08:00
|
|
|
|
AuditReason string `bson:"auditReason" json:"auditReason"` // 审核不通过原因
|
|
|
|
|
|
AuditTime int64 `bson:"auditTime" json:"auditTime"` // 审核时间
|
|
|
|
|
|
AuditBy string `bson:"auditBy" json:"auditBy"` // 审核人
|
|
|
|
|
|
|
|
|
|
|
|
// 系统信息
|
2025-12-19 09:42:39 +08:00
|
|
|
|
AccountBalance int64 `bson:"accountBalance" json:"accountBalance"` // 账户余额(分)
|
|
|
|
|
|
CreditLimit int64 `bson:"creditLimit" json:"creditLimit"` // 授信额度(分)
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// GetCollectionName 获取集合名称
|
|
|
|
|
|
func (a *Advertiser) GetCollectionName() string {
|
|
|
|
|
|
return AdvertiserCollection
|
2025-12-06 09:10:24 +08:00
|
|
|
|
}
|