133 lines
5.3 KiB
Go
133 lines
5.3 KiB
Go
package copydata
|
||
|
||
import (
|
||
"gitea.com/red-future/common/beans"
|
||
"github.com/gogf/gf/v2/frame/g"
|
||
)
|
||
|
||
// CreateStorewideReportDetailReq 创建广告效果指标表请求
|
||
type CreateStorewideReportDetailReq struct {
|
||
g.Meta `path:"/createStorewideReportDetail" method:"post" tags:"广告效果指标" summary:"创建广告效果指标表" dc:"创建新的广告效果指标表"`
|
||
*StorewideReportDetailItem
|
||
}
|
||
|
||
// CreateStorewideReportDetailRes 创建广告效果指标表响应
|
||
type CreateStorewideReportDetailRes struct {
|
||
Id int64 `json:"id" dc:"广告效果指标 ID"`
|
||
}
|
||
|
||
// BatchCreateStorewideReportDetailReq 批量创建广告效果指标表请求
|
||
type BatchCreateStorewideReportDetailReq struct {
|
||
g.Meta `path:"/batchCreateStorewideReportDetail" method:"post" tags:"广告效果指标" summary:"批量创建广告效果指标表" dc:"批量创建广告效果指标表"`
|
||
Items []*StorewideReportDetailItem `json:"items" v:"required" dc:"广告效果指标列表"`
|
||
}
|
||
|
||
// BatchCreateStorewideReportDetailRes 批量创建广告效果指标表响应
|
||
type BatchCreateStorewideReportDetailRes struct {
|
||
SuccessCount int64 `json:"successCount" dc:"成功数量"`
|
||
FailCount int64 `json:"failCount" dc:"失败数量"`
|
||
FailedItems []int64 `json:"failedItems" dc:"失败项索引"`
|
||
}
|
||
|
||
// StorewideReportDetailItem 广告效果指标表项
|
||
type StorewideReportDetailItem struct {
|
||
// 订单金额相关字段
|
||
T0OrderPaymentAmt *float64 `json:"t0OrderPaymentAmt" dc:"当日总成交订单金额"`
|
||
|
||
// 素材类型字段
|
||
CreativeMaterialType string `json:"creativeMaterialType" dc:"视频素材类型(视频:HORIZONTAL_SCREEN, VERTICAL_SCREEN, UNKNOWN_TYPE;图集:ATLAS;长图:ATLAS_VERTICAL)"`
|
||
|
||
// 直播相关字段
|
||
LiveName string `json:"liveName" dc:"直播间名称"`
|
||
AuthorId string `json:"authorId" dc:"直播用户快手 Id"`
|
||
|
||
// 图片相关字段
|
||
PicUrl string `json:"picUrl" dc:"图片 URL"`
|
||
PicName string `json:"picName" dc:"图片名称"`
|
||
PicId string `json:"picId" dc:"图片 Id"`
|
||
|
||
// 封面相关字段
|
||
CoverUrl string `json:"coverUrl" dc:"封面 URL"`
|
||
CoverId *int64 `json:"coverId" dc:"封面 Id"`
|
||
|
||
// 商品卡点击相关字段
|
||
ItemCardClkCnt *int64 `json:"itemCardClkCnt" dc:"商品卡点击数"`
|
||
|
||
// 净成交相关字段
|
||
NetT0OrderCnt *int64 `json:"netT0OrderCnt" dc:"当日累计净成交订单数"`
|
||
NetT0Roi *float64 `json:"netT0Roi" dc:"净成交 ROI"`
|
||
NetT0Gmv *float64 `json:"netT0Gmv" dc:"净成交 GMV"`
|
||
|
||
// 视频相关字段
|
||
PhotoName string `json:"photoName" dc:"视频名称"`
|
||
PhotoIdStr string `json:"photoIdStr" dc:"视频 id"`
|
||
PhotoId string `json:"photoId" dc:"视频 id"`
|
||
|
||
// 行为相关字段
|
||
AdItemClick *int64 `json:"adItemClick" dc:"行为数"`
|
||
|
||
// 商品相关字段
|
||
MerchantProductId string `json:"merchantProductId" dc:"商品 ID"`
|
||
|
||
// 花费相关字段
|
||
CostTotal *float64 `json:"costTotal" dc:"花费"`
|
||
|
||
// 行为率字段
|
||
EspClickRatio *float64 `json:"espClickRatio" dc:"行为率"`
|
||
|
||
// 当日 GMV 相关字段
|
||
T0Gmv *float64 `json:"t0Gmv" dc:"当日累计 GMV"`
|
||
T0Roi *float64 `json:"t0Roi" dc:"当日累计 ROI"`
|
||
|
||
// 当日订单相关字段
|
||
T0OrderCnt *int64 `json:"t0OrderCnt" dc:"当日累计订单数"`
|
||
T0OrderCntCost *float64 `json:"t0OrderCntCost" dc:"当日累计订单成本"`
|
||
|
||
// 智能优惠券相关字段
|
||
QcpxWhiteboxDirectOrderPaymentAmt *float64 `json:"qcpxWhiteboxDirectOrderPaymentAmt" dc:"智能优惠券订单 GMV"`
|
||
QcpxWhiteboxDirectOrderCnt *int64 `json:"qcpxWhiteboxDirectOrderCnt" dc:"智能优惠券订单数"`
|
||
|
||
// 直播观看相关字段
|
||
LivePlayCnt *int64 `json:"livePlayCnt" dc:"全站直播观看数"`
|
||
|
||
// 商品入口点击相关字段
|
||
ItemEntranceClkCnt *int64 `json:"itemEntranceClkCnt" dc:"小黄车点击数"`
|
||
|
||
// 曝光相关字段
|
||
ShowCnt *int64 `json:"showCnt" dc:"全站曝光"`
|
||
|
||
// 报告日期字段
|
||
ReportDateStr string `json:"reportDateStr" v:"required" dc:"时间"`
|
||
|
||
// 广告计划相关字段
|
||
CampaignId *int64 `json:"campaignId" dc:"计划 ID"`
|
||
CampaignName string `json:"campaignName" dc:"计划名称"`
|
||
|
||
// 广告单元相关字段
|
||
UnitId *int64 `json:"unitId" dc:"单元 ID"`
|
||
UnitName string `json:"unitName" dc:"单元名称"`
|
||
|
||
// 广告创意相关字段
|
||
CreativeId *int64 `json:"creativeId" dc:"创意 ID"`
|
||
CreativeName string `json:"creativeName" dc:"创意名称"`
|
||
}
|
||
|
||
// ListStorewideReportDetailReq 获取广告效果指标表列表请求
|
||
type ListStorewideReportDetailReq struct {
|
||
g.Meta `path:"/listStorewideReportDetail" method:"get" tags:"广告效果指标" summary:"获取广告效果指标表列表" dc:"分页查询广告效果指标表列表"`
|
||
*beans.Page
|
||
ReportDateStr string `json:"reportDateStr" dc:"时间"`
|
||
CampaignId *int64 `json:"campaignId" dc:"计划 ID"`
|
||
UnitId *int64 `json:"unitId" dc:"单元 ID"`
|
||
CreativeId *int64 `json:"creativeId" dc:"创意 ID"`
|
||
AuthorId string `json:"authorId" dc:"直播用户快手 Id"`
|
||
MerchantProductId string `json:"merchantProductId" dc:"商品 ID"`
|
||
Keyword string `json:"keyword" dc:"关键字(搜索直播间名称、视频名称等)"`
|
||
}
|
||
|
||
// ListStorewideReportDetailRes 获取广告效果指标表列表响应
|
||
type ListStorewideReportDetailRes struct {
|
||
List []*StorewideReportDetailItem `json:"list" dc:"广告效果指标列表"`
|
||
Total int `json:"total" dc:"总数"`
|
||
}
|