2026-04-02 11:51:44 +08:00
|
|
|
package copydata
|
|
|
|
|
|
2026-06-10 15:56:02 +08:00
|
|
|
import "gitea.redpowerfuture.com/red-future/common/beans"
|
2026-04-02 11:51:44 +08:00
|
|
|
|
|
|
|
|
// StorewideReportSum 广告效果指标表实体
|
|
|
|
|
type StorewideReportSum struct {
|
|
|
|
|
beans.SQLBaseDO `orm:",inherit"`
|
|
|
|
|
|
|
|
|
|
// 新增字段
|
|
|
|
|
T0OrderPaymentAmt *float64 `orm:"t0_order_payment_amt" json:"t0OrderPaymentAmt" description:"当日总成交订单金额"`
|
|
|
|
|
CreativeMaterialType string `orm:"creative_material_type" json:"creativeMaterialType" description:"视频素材类型"`
|
|
|
|
|
LiveName string `orm:"live_name" json:"liveName" description:"直播间名称"`
|
|
|
|
|
AuthorId string `orm:"author_id" json:"authorId" description:"直播用户快手 Id"`
|
|
|
|
|
PicUrl string `orm:"pic_url" json:"picUrl" description:"图片 URL"`
|
|
|
|
|
PicName string `orm:"pic_name" json:"picName" description:"图片名称"`
|
|
|
|
|
PicId string `orm:"pic_id" json:"picId" description:"图片 Id"`
|
|
|
|
|
CoverUrl string `orm:"cover_url" json:"coverUrl" description:"封面 URL"`
|
|
|
|
|
CoverId *int64 `orm:"cover_id" json:"coverId" description:"封面 Id"`
|
|
|
|
|
ItemCardClkCnt *int64 `orm:"item_card_clk_cnt" json:"itemCardClkCnt" description:"商品卡点击数"`
|
|
|
|
|
NetT0OrderCnt *int64 `orm:"net_t0_order_cnt" json:"netT0OrderCnt" description:"当日累计净成交订单数"`
|
|
|
|
|
NetT0Roi *float64 `orm:"net_t0_roi" json:"netT0Roi" description:"净成交 ROI"`
|
|
|
|
|
NetT0Gmv *float64 `orm:"net_t0_gmv" json:"netT0Gmv" description:"净成交 GMV"`
|
|
|
|
|
|
|
|
|
|
// 原有字段
|
|
|
|
|
PhotoName string `orm:"photo_name" json:"photoName" description:"视频名称"`
|
|
|
|
|
PhotoIdStr string `orm:"photo_id_str" json:"photoIdStr" description:"视频 id"`
|
|
|
|
|
PhotoId string `orm:"photo_id" json:"photoId" description:"视频 id"`
|
|
|
|
|
AdItemClick *int64 `orm:"ad_item_click" json:"adItemClick" description:"行为数"`
|
|
|
|
|
MerchantProductId string `orm:"merchant_product_id" json:"merchantProductId" description:"商品 ID"`
|
|
|
|
|
CostTotal *float64 `orm:"cost_total" json:"costTotal" description:"花费"`
|
|
|
|
|
EspClickRatio *float64 `orm:"esp_click_ratio" json:"espClickRatio" description:"行为率"`
|
|
|
|
|
T0Gmv *float64 `orm:"t0_gmv" json:"t0Gmv" description:"当日累计 GMV"`
|
|
|
|
|
T0Roi *float64 `orm:"t0_roi" json:"t0Roi" description:"当日累计 ROI"`
|
|
|
|
|
T0OrderCnt *int64 `orm:"t0_order_cnt" json:"t0OrderCnt" description:"当日累计订单数"`
|
|
|
|
|
T0OrderCntCost *float64 `orm:"t0_order_cnt_cost" json:"t0OrderCntCost" description:"当日累计订单成本"`
|
|
|
|
|
QcpxWhiteboxDirectOrderPaymentAmt *float64 `orm:"qcpx_whitebox_direct_order_payment_amt" json:"qcpxWhiteboxDirectOrderPaymentAmt" description:"智能优惠券订单 GMV"`
|
|
|
|
|
QcpxWhiteboxDirectOrderCnt *int64 `orm:"qcpx_whitebox_direct_order_cnt" json:"qcpxWhiteboxDirectOrderCnt" description:"智能优惠券订单数"`
|
|
|
|
|
LivePlayCnt *int64 `orm:"live_play_cnt" json:"livePlayCnt" description:"全站直播观看数"`
|
|
|
|
|
ItemEntranceClkCnt *int64 `orm:"item_entrance_clk_cnt" json:"itemEntranceClkCnt" description:"小黄车点击数"`
|
|
|
|
|
ShowCnt *int64 `orm:"show_cnt" json:"showCnt" description:"全站曝光"`
|
|
|
|
|
ReportDateStr string `orm:"report_date_str" json:"reportDateStr" description:"时间"`
|
|
|
|
|
CampaignId *int64 `orm:"campaign_id" json:"campaignId" description:"计划 ID"`
|
|
|
|
|
CampaignName string `orm:"campaign_name" json:"campaignName" description:"计划名称"`
|
|
|
|
|
UnitId *int64 `orm:"unit_id" json:"unitId" description:"单元 ID"`
|
|
|
|
|
UnitName string `orm:"unit_name" json:"unitName" description:"单元名称"`
|
|
|
|
|
CreativeId *int64 `orm:"creative_id" json:"creativeId" description:"创意 ID"`
|
|
|
|
|
CreativeName string `orm:"creative_name" json:"creativeName" description:"创意名称"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// StorewideReportSumCol 广告效果指标表表字段定义
|
|
|
|
|
type StorewideReportSumCol struct {
|
|
|
|
|
beans.SQLBaseCol
|
|
|
|
|
T0OrderPaymentAmt string
|
|
|
|
|
CreativeMaterialType string
|
|
|
|
|
LiveName string
|
|
|
|
|
AuthorId string
|
|
|
|
|
PicUrl string
|
|
|
|
|
PicName string
|
|
|
|
|
PicId string
|
|
|
|
|
CoverUrl string
|
|
|
|
|
CoverId string
|
|
|
|
|
ItemCardClkCnt string
|
|
|
|
|
NetT0OrderCnt string
|
|
|
|
|
NetT0Roi string
|
|
|
|
|
NetT0Gmv string
|
|
|
|
|
PhotoName string
|
|
|
|
|
PhotoIdStr string
|
|
|
|
|
PhotoId string
|
|
|
|
|
AdItemClick string
|
|
|
|
|
MerchantProductId string
|
|
|
|
|
CostTotal string
|
|
|
|
|
EspClickRatio string
|
|
|
|
|
T0Gmv string
|
|
|
|
|
T0Roi string
|
|
|
|
|
T0OrderCnt string
|
|
|
|
|
T0OrderCntCost string
|
|
|
|
|
QcpxWhiteboxDirectOrderPaymentAmt string
|
|
|
|
|
QcpxWhiteboxDirectOrderCnt string
|
|
|
|
|
LivePlayCnt string
|
|
|
|
|
ItemEntranceClkCnt string
|
|
|
|
|
ShowCnt string
|
|
|
|
|
ReportDateStr string
|
|
|
|
|
CampaignId string
|
|
|
|
|
CampaignName string
|
|
|
|
|
UnitId string
|
|
|
|
|
UnitName string
|
|
|
|
|
CreativeId string
|
|
|
|
|
CreativeName string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// TableName 返回表名
|
|
|
|
|
func (e *StorewideReportSum) TableName() string {
|
|
|
|
|
return "storewide_report_sum"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// GetCols 获取所有字段名
|
|
|
|
|
func (e *StorewideReportSum) GetCols() *StorewideReportSumCol {
|
|
|
|
|
return &StorewideReportSumCol{
|
|
|
|
|
SQLBaseCol: beans.SQLBaseCol{
|
|
|
|
|
Id: "id",
|
|
|
|
|
CreatedAt: "created_at",
|
|
|
|
|
UpdatedAt: "updated_at",
|
|
|
|
|
},
|
|
|
|
|
T0OrderPaymentAmt: "t0_order_payment_amt",
|
|
|
|
|
CreativeMaterialType: "creative_material_type",
|
|
|
|
|
LiveName: "live_name",
|
|
|
|
|
AuthorId: "author_id",
|
|
|
|
|
PicUrl: "pic_url",
|
|
|
|
|
PicName: "pic_name",
|
|
|
|
|
PicId: "pic_id",
|
|
|
|
|
CoverUrl: "cover_url",
|
|
|
|
|
CoverId: "cover_id",
|
|
|
|
|
ItemCardClkCnt: "item_card_clk_cnt",
|
|
|
|
|
NetT0OrderCnt: "net_t0_order_cnt",
|
|
|
|
|
NetT0Roi: "net_t0_roi",
|
|
|
|
|
NetT0Gmv: "net_t0_gmv",
|
|
|
|
|
PhotoName: "photo_name",
|
|
|
|
|
PhotoIdStr: "photo_id_str",
|
|
|
|
|
PhotoId: "photo_id",
|
|
|
|
|
AdItemClick: "ad_item_click",
|
|
|
|
|
MerchantProductId: "merchant_product_id",
|
|
|
|
|
CostTotal: "cost_total",
|
|
|
|
|
EspClickRatio: "esp_click_ratio",
|
|
|
|
|
T0Gmv: "t0_gmv",
|
|
|
|
|
T0Roi: "t0_roi",
|
|
|
|
|
T0OrderCnt: "t0_order_cnt",
|
|
|
|
|
T0OrderCntCost: "t0_order_cnt_cost",
|
|
|
|
|
QcpxWhiteboxDirectOrderPaymentAmt: "qcpx_whitebox_direct_order_payment_amt",
|
|
|
|
|
QcpxWhiteboxDirectOrderCnt: "qcpx_whitebox_direct_order_cnt",
|
|
|
|
|
LivePlayCnt: "live_play_cnt",
|
|
|
|
|
ItemEntranceClkCnt: "item_entrance_clk_cnt",
|
|
|
|
|
ShowCnt: "show_cnt",
|
|
|
|
|
ReportDateStr: "report_date_str",
|
|
|
|
|
CampaignId: "campaign_id",
|
|
|
|
|
CampaignName: "campaign_name",
|
|
|
|
|
UnitId: "unit_id",
|
|
|
|
|
UnitName: "unit_name",
|
|
|
|
|
CreativeId: "creative_id",
|
|
|
|
|
CreativeName: "creative_name",
|
|
|
|
|
}
|
|
|
|
|
}
|