46 lines
1.4 KiB
Go
46 lines
1.4 KiB
Go
package dsp
|
|
|
|
import (
|
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
|
)
|
|
|
|
// AdSlot 广告位实体(自有媒体广告位,售卖给计划)
|
|
type AdSlot struct {
|
|
beans.SQLBaseDO `orm:",inherit"`
|
|
// 业务字段
|
|
MediaID int64 `orm:"media_id" json:"mediaId" description:"媒体ID"`
|
|
Name string `orm:"name" json:"name" description:"广告位名称"`
|
|
SlotType string `orm:"slot_type" json:"slotType" description:"广告位类型 banner/feed/video/interstitial/reward"`
|
|
Size string `orm:"size" json:"size" description:"尺寸"`
|
|
Unit string `orm:"unit" json:"unit" description:"计费方式 cpm/cpc/cpa"`
|
|
BasePrice int64 `orm:"base_price" json:"basePrice" description:"底价(分,cpm按千次)"`
|
|
Status int `orm:"status" json:"status" description:"状态 1可售 0停售"`
|
|
Extra string `orm:"extra" json:"extra" description:"扩展(JSON) 定向能力声明等"`
|
|
}
|
|
|
|
// AdSlotCol 广告位表字段定义
|
|
type AdSlotCol struct {
|
|
beans.SQLBaseCol
|
|
MediaID string
|
|
Name string
|
|
SlotType string
|
|
Size string
|
|
Unit string
|
|
BasePrice string
|
|
Status string
|
|
Extra string
|
|
}
|
|
|
|
// AdSlotCols 广告位表字段常量
|
|
var AdSlotCols = AdSlotCol{
|
|
SQLBaseCol: beans.DefSQLBaseCol,
|
|
MediaID: "media_id",
|
|
Name: "name",
|
|
SlotType: "slot_type",
|
|
Size: "size",
|
|
Unit: "unit",
|
|
BasePrice: "base_price",
|
|
Status: "status",
|
|
Extra: "extra",
|
|
}
|