58 lines
2.5 KiB
Go
58 lines
2.5 KiB
Go
package entity
|
||
|
||
import (
|
||
"cid/model/config"
|
||
|
||
"gitee.com/red-future---jilin-g/common/do"
|
||
)
|
||
|
||
const AdPlatformCollection = "ad_platform"
|
||
|
||
// AdPlatform 广告平台实体
|
||
type AdPlatform struct {
|
||
do.MongoBaseDO `bson:",inline" json:",inline"`
|
||
Status string `bson:"status" json:"status"` // 状态:active、inactive、maintenance等
|
||
|
||
// 平台基本信息
|
||
Name string `bson:"name" json:"name"` // 平台名称:小红书、抖音、快手、京东、淘宝、百度等
|
||
Code string `bson:"code" json:"code"` // 平台编码,唯一标识
|
||
DisplayName string `bson:"displayName" json:"displayName"` // 显示名称
|
||
Logo string `bson:"logo" json:"logo"` // 平台Logo
|
||
Description string `bson:"description" json:"description"` // 平台描述
|
||
Category string `bson:"category" json:"category"` // 平台分类:social、ecommerce、search、short_video等
|
||
|
||
// 支持的广告类型
|
||
SupportedAdTypes []string `bson:"supportedAdTypes" json:"supportedAdTypes"` // 支持的广告类型
|
||
SupportedFormats []string `bson:"supportedFormats" json:"supportedFormats"` // 支持的广告格式
|
||
|
||
// 技术能力
|
||
RealTimeBidding bool `bson:"realTimeBidding" json:"realTimeBidding"` // 是否支持实时竞价
|
||
ProgrammaticGuaranteed bool `bson:"programmaticGuaranteed" json:"programmaticGuaranteed"` // 是否支持程序化保障
|
||
HeaderBidding bool `bson:"headerBidding" json:"headerBidding"` // 是否支持Header Bidding
|
||
|
||
// API配置
|
||
config.APIConfig `bson:",inline" json:",inline"` // 内联API配置
|
||
|
||
// 竞价配置
|
||
config.BiddingConfig `bson:",inline" json:",inline"` // 内联竞价配置
|
||
|
||
// 支付配置
|
||
config.PaymentConfig `bson:",inline" json:",inline"` // 内联支付配置
|
||
|
||
// 限流配置
|
||
RateLimit int64 `bson:"rateLimit" json:"rateLimit"` // 速率限制
|
||
MaxBudgetPerDay int64 `bson:"maxBudgetPerDay" json:"maxBudgetPerDay"` // 每日最大预算
|
||
|
||
LastSyncTime int64 `bson:"lastSyncTime" json:"lastSyncTime"` // 最后同步时间
|
||
|
||
// 联系信息
|
||
SupportContact string `bson:"supportContact" json:"supportContact"` // 技术支持联系方式
|
||
AccountManager string `bson:"accountManager" json:"accountManager"` // 客户经理
|
||
TechDocumentation string `bson:"techDocumentation" json:"techDocumentation"` // 技术文档链接
|
||
}
|
||
|
||
// GetCollectionName 获取集合名称
|
||
func (a *AdPlatform) GetCollectionName() string {
|
||
return AdPlatformCollection
|
||
}
|