代码初始化
This commit is contained in:
181
model/entity/copydata/storewide_report_detail.go
Normal file
181
model/entity/copydata/storewide_report_detail.go
Normal file
@@ -0,0 +1,181 @@
|
||||
package copydata
|
||||
|
||||
import "gitea.com/red-future/common/beans"
|
||||
|
||||
// StorewideReportDetail 广告效果指标表实体
|
||||
type StorewideReportDetail struct {
|
||||
beans.SQLBaseDO `orm:",inherit"`
|
||||
|
||||
// 订单金额相关字段
|
||||
T0OrderPaymentAmt *float64 `orm:"t0_order_payment_amt" json:"t0OrderPaymentAmt" description:"当日总成交订单金额"`
|
||||
|
||||
// 素材类型字段
|
||||
CreativeMaterialType string `orm:"creative_material_type" json:"creativeMaterialType" description:"视频素材类型(视频:HORIZONTAL_SCREEN, VERTICAL_SCREEN, UNKNOWN_TYPE;图集:ATLAS;长图:ATLAS_VERTICAL)"`
|
||||
|
||||
// 直播相关字段
|
||||
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:"行为率"`
|
||||
|
||||
// 当日 GMV 相关字段
|
||||
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:"创意名称"`
|
||||
}
|
||||
|
||||
// StorewideReportDetailCol 广告效果指标表表字段定义
|
||||
type StorewideReportDetailCol 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 *StorewideReportDetail) TableName() string {
|
||||
return "storewide_report_detail"
|
||||
}
|
||||
|
||||
// GetCols 获取所有字段名
|
||||
func (e *StorewideReportDetail) GetCols() *StorewideReportDetailCol {
|
||||
return &StorewideReportDetailCol{
|
||||
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",
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user