48 lines
1.6 KiB
Go
48 lines
1.6 KiB
Go
package dsp
|
|
|
|
import (
|
|
"github.com/gogf/gf/v2/os/gtime"
|
|
|
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
|
)
|
|
|
|
// Placement 预订单实体(PD直投/程序化直购:计划×广告位预订)
|
|
type Placement struct {
|
|
beans.SQLBaseDO `orm:",inherit"`
|
|
// 业务字段
|
|
AdSlotID int64 `orm:"ad_slot_id" json:"adSlotId" description:"广告位ID"`
|
|
CampaignID int64 `orm:"campaign_id" json:"campaignId" description:"本地计划ID"`
|
|
Quota int `orm:"quota" json:"quota" description:"预订量(展示次数)"`
|
|
Price int64 `orm:"price" json:"price" description:"协议价(分,按unit口径)"`
|
|
BookStart *gtime.Time `orm:"book_start" json:"bookStart" description:"预订开始时间"`
|
|
BookEnd *gtime.Time `orm:"book_end" json:"bookEnd" description:"预订结束时间"`
|
|
Status string `orm:"status" json:"status" description:"状态 pending/running/finished/ended"`
|
|
DeliveredCount int `orm:"delivered_count" json:"deliveredCount" description:"已投展示数"`
|
|
}
|
|
|
|
// PlacementCol 预订单表字段定义
|
|
type PlacementCol struct {
|
|
beans.SQLBaseCol
|
|
AdSlotID string
|
|
CampaignID string
|
|
Quota string
|
|
Price string
|
|
BookStart string
|
|
BookEnd string
|
|
Status string
|
|
DeliveredCount string
|
|
}
|
|
|
|
// PlacementCols 预订单表字段常量
|
|
var PlacementCols = PlacementCol{
|
|
SQLBaseCol: beans.DefSQLBaseCol,
|
|
AdSlotID: "ad_slot_id",
|
|
CampaignID: "campaign_id",
|
|
Quota: "quota",
|
|
Price: "price",
|
|
BookStart: "book_start",
|
|
BookEnd: "book_end",
|
|
Status: "status",
|
|
DeliveredCount: "delivered_count",
|
|
}
|