gomod引用
This commit is contained in:
32
model/entity/app_platform_config.go
Normal file
32
model/entity/app_platform_config.go
Normal file
@@ -0,0 +1,32 @@
|
||||
package entity
|
||||
|
||||
import (
|
||||
"gitee.com/red-future---jilin-g/common/do"
|
||||
)
|
||||
|
||||
const AppPlatformConfigCollection = "app_platform_config"
|
||||
|
||||
// AppPlatformConfig 应用平台配置实体
|
||||
type AppPlatformConfig struct {
|
||||
do.MongoBaseDO `bson:",inline" json:",inline"`
|
||||
Status string `bson:"status" json:"status"` // 状态:active、inactive、maintenance等
|
||||
|
||||
// 关联信息
|
||||
AppID string `bson:"appId" json:"appId"` // 应用ID
|
||||
PlatformID string `bson:"platformId" json:"platformId"` // 平台ID
|
||||
|
||||
// 配置信息
|
||||
Config string `bson:"config" json:"config"` // 配置信息(JSON字符串)
|
||||
MaxAdsPerReq int `bson:"maxAdsPerReq" json:"maxAdsPerReq"` // 每次请求最大广告数
|
||||
|
||||
// 定向配置
|
||||
TargetingRules string `bson:"targetingRules" json:"targetingRules"` // 定向规则(JSON字符串)
|
||||
|
||||
// 过滤配置
|
||||
FilterRules string `bson:"filterRules" json:"filterRules"` // 过滤规则(JSON字符串)
|
||||
}
|
||||
|
||||
// GetCollectionName 获取集合名称
|
||||
func (a *AppPlatformConfig) GetCollectionName() string {
|
||||
return AppPlatformConfigCollection
|
||||
}
|
||||
Reference in New Issue
Block a user