代码初始化
This commit is contained in:
92
model/dto/copydata/task_report_dto.go
Normal file
92
model/dto/copydata/task_report_dto.go
Normal file
@@ -0,0 +1,92 @@
|
||||
package copydata
|
||||
|
||||
import (
|
||||
"gitea.com/red-future/common/beans"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// CreateTaskReportReq 创建调控任务数据请求
|
||||
type CreateTaskReportReq struct {
|
||||
g.Meta `path:"/createTaskReport" method:"post" tags:"调控任务" summary:"创建调控任务数据" dc:"创建新的调控任务数据"`
|
||||
*TaskReportItem
|
||||
}
|
||||
|
||||
// CreateTaskReportRes 创建调控任务数据响应
|
||||
type CreateTaskReportRes struct {
|
||||
Id int64 `json:"id" dc:"调控任务数据 ID"`
|
||||
}
|
||||
|
||||
// BatchCreateTaskReportReq 批量创建调控任务数据请求
|
||||
type BatchCreateTaskReportReq struct {
|
||||
g.Meta `path:"/batchCreateTaskReport" method:"post" tags:"调控任务" summary:"批量创建调控任务数据" dc:"批量创建调控任务数据"`
|
||||
Items []*TaskReportItem `json:"items" v:"required" dc:"调控任务数据列表"`
|
||||
}
|
||||
|
||||
// BatchCreateTaskReportRes 批量创建调控任务数据响应
|
||||
type BatchCreateTaskReportRes struct {
|
||||
SuccessCount int64 `json:"successCount" dc:"成功数量"`
|
||||
FailCount int64 `json:"failCount" dc:"失败数量"`
|
||||
FailedItems []int64 `json:"failedItems" dc:"失败项索引"`
|
||||
}
|
||||
|
||||
// TaskReportItem 调控任务数据项
|
||||
type TaskReportItem struct {
|
||||
// 转化率相关字段
|
||||
ItemOrderConversionRatio *float64 `json:"itemOrderConversionRatio" dc:"转化率"`
|
||||
ItemCardClickRatio *float64 `json:"itemCardClickRatio" dc:"点击率"`
|
||||
ItemCardClkCnt *int64 `json:"itemCardClkCnt" dc:"商品卡点击数"`
|
||||
LivePlayCntCost *float64 `json:"livePlayCntCost" dc:"直播间观看成本"`
|
||||
AdMerchantFollowCost *float64 `json:"adMerchantFollowCost" dc:"涨粉成本"`
|
||||
AdMerchantFollow *int64 `json:"adMerchantFollow" dc:"涨粉数"`
|
||||
NetT0OrderCnt *int64 `json:"netT0OrderCnt" dc:"当日累计净成交订单数"`
|
||||
NetT0Roi *float64 `json:"netT0Roi" dc:"净成交 ROI"`
|
||||
NetT0Gmv *float64 `json:"netT0Gmv" dc:"净成交 GMV"`
|
||||
|
||||
// 视频信息字段
|
||||
PhotoName string `json:"photoName" dc:"视频名称"`
|
||||
PhotoId string `json:"photoId" dc:"视频 id"`
|
||||
|
||||
// 核心指标字段
|
||||
CostTotal *float64 `json:"costTotal" dc:"花费"`
|
||||
T0Gmv *float64 `json:"t0Gmv" dc:"当日累计 GMV"`
|
||||
T0Roi *float64 `json:"t0Roi" dc:"当日累计 ROI"`
|
||||
T0OrderCnt *int64 `json:"t0OrderCnt" dc:"当日累计订单数"`
|
||||
T0OrderCntCost *float64 `json:"t0OrderCntCost" dc:"当日累计订单成本"`
|
||||
|
||||
// 粉丝 GMV 字段
|
||||
FansT0Gmv *float64 `json:"fansT0Gmv" dc:"涨粉当日 GMV"`
|
||||
FansT1Gmv *float64 `json:"fansT1Gmv" dc:"涨粉次日 GMV"`
|
||||
FansT7Gmv *float64 `json:"fansT7Gmv" dc:"涨粉 7 日 GMV"`
|
||||
FansT15Gmv *float64 `json:"fansT15Gmv" dc:"涨粉 15 日 GMV"`
|
||||
FansT30Gmv *float64 `json:"fansT30Gmv" dc:"涨粉 30 日 GMV"`
|
||||
|
||||
// 粉丝 ROI 字段
|
||||
FansT0Roi *float64 `json:"fansT0Roi" dc:"涨粉当日 ROI"`
|
||||
FansT1Roi *float64 `json:"fansT1Roi" dc:"涨粉次日 ROI"`
|
||||
FansT7Roi *float64 `json:"fansT7Roi" dc:"涨粉 7 日 ROI"`
|
||||
FansT15Roi *float64 `json:"fansT15Roi" dc:"涨粉 15 日 ROI"`
|
||||
FansT30Roi *float64 `json:"fansT30Roi" dc:"涨粉 30 日 ROI"`
|
||||
|
||||
// 全站数据字段
|
||||
LivePlayCnt *int64 `json:"livePlayCnt" dc:"全站直播观看数"`
|
||||
ItemEntranceClkCnt *int64 `json:"itemEntranceClkCnt" dc:"小黄车点击数"`
|
||||
ShowCnt *int64 `json:"showCnt" dc:"全站曝光"`
|
||||
|
||||
// 时间字段
|
||||
ReportDateStr string `json:"reportDateStr" v:"required" dc:"时间(格式:YYYY-MM-DD)"`
|
||||
}
|
||||
|
||||
// ListTaskReportReq 获取调控任务数据列表请求
|
||||
type ListTaskReportReq struct {
|
||||
g.Meta `path:"/listTaskReport" method:"get" tags:"调控任务" summary:"获取调控任务数据列表" dc:"分页查询调控任务数据列表"`
|
||||
*beans.Page
|
||||
ReportDateStr string `json:"reportDateStr" dc:"时间"`
|
||||
PhotoId string `json:"photoId" dc:"视频 id"`
|
||||
Keyword string `json:"keyword" dc:"关键字(搜索视频名称等)"`
|
||||
}
|
||||
|
||||
// ListTaskReportRes 获取调控任务数据列表响应
|
||||
type ListTaskReportRes struct {
|
||||
List []*TaskReportItem `json:"list" dc:"调控任务数据列表"`
|
||||
Total int `json:"total" dc:"总数"`
|
||||
}
|
||||
Reference in New Issue
Block a user