gomod引用
This commit is contained in:
@@ -1,23 +1,23 @@
|
||||
package entity
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
"gitee.com/red-future---jilin-g/common/do"
|
||||
)
|
||||
|
||||
const StrategyCollection = "strategy"
|
||||
|
||||
// Strategy 匹配策略表
|
||||
type Strategy struct {
|
||||
Id int64 `json:"id" orm:"id,primary"` // ID
|
||||
Name string `json:"name" orm:"name"` // 策略名称
|
||||
Description string `json:"description" orm:"description"` // 描述
|
||||
MinConversion float64 `json:"min_conversion" orm:"min_conversion"` // 最低转化率
|
||||
MaxConversion float64 `json:"max_conversion" orm:"max_conversion"` // 最高转化率
|
||||
SourceWeights string `json:"source_weights" orm:"source_weights"` // 广告源权重 (JSON格式)
|
||||
MaxAdsPerReq int `json:"max_ads_per_req" orm:"max_ads_per_req"` // 每次请求最大广告数
|
||||
MaxReqPerHour int `json:"max_req_per_hour" orm:"max_req_per_hour"` // 每小时最大请求次数
|
||||
Priority int `json:"priority" orm:"priority"` // 优先级
|
||||
Status string `json:"status" orm:"status"` // 状态: active, inactive
|
||||
CreatedAt *gtime.Time `json:"created_at" orm:"created_at"` // 创建时间
|
||||
UpdatedAt *gtime.Time `json:"updated_at" orm:"updated_at"` // 更新时间
|
||||
CreatedBy int64 `json:"created_by" orm:"created_by"` // 创建人
|
||||
UpdatedBy int64 `json:"updated_by" orm:"updated_by"` // 更新人
|
||||
do.MongoBaseDO `bson:",inline" json:",inline"` // 嵌入基础字段:Id, Creator, CreatedAt, Updater, UpdatedAt, TenantId, IsDeleted
|
||||
|
||||
// 策略基本信息
|
||||
Name string `bson:"name" json:"name"` // 策略名称
|
||||
Description string `bson:"description" json:"description"` // 描述
|
||||
MinConversion float64 `bson:"minConversion" json:"minConversion"` // 最低转化率
|
||||
MaxConversion float64 `bson:"maxConversion" json:"maxConversion"` // 最高转化率
|
||||
SourceWeights string `bson:"sourceWeights" json:"sourceWeights"` // 广告源权重 (JSON格式)
|
||||
MaxAdsPerReq int `bson:"maxAdsPerReq" json:"maxAdsPerReq"` // 每次请求最大广告数
|
||||
MaxReqPerHour int `bson:"maxReqPerHour" json:"maxReqPerHour"` // 每小时最大请求次数
|
||||
Priority int `bson:"priority" json:"priority"` // 优先级
|
||||
Status string `bson:"status" json:"status"` // 状态: active, inactive
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user