Ethan 5 月之前
父节点
当前提交
64f6c1e4ad
共有 3 个文件被更改,包括 55 次插入7 次删除
  1. 5 0
      app/controller/task_controller.go
  2. 42 0
      app/vo/re_selection_data.go
  3. 8 7
      route/init.go

+ 5 - 0
app/controller/task_controller.go

@@ -819,3 +819,8 @@ func (t TaskController) LocalLifeDel(c *gin.Context) {
 	resultMap["localId"] = *localId
 	returnSuccess(c, 20000, resultMap)
 }
+
+// 删除种草任务
+func (t TaskController) TalentDataDetail(c *gin.Context) {
+
+}

+ 42 - 0
app/vo/re_selection_data.go

@@ -0,0 +1,42 @@
+package vo
+
+type ReSelectionTalentData struct {
+	AddWindowNum      []int64 `json:"addWindowNum"`      // 添加橱窗达人数
+	AvgFanNum         int64   `json:"avgFanNum"`         // 平均粉丝数
+	SalesDistribution []int64 `json:"salesDistribution"` // 领样达人销量分布[100-, 100-1000, 1000-5000, 5000-1w, 1w-10w, 10w+]
+	FansDistribution  []int64 `json:"fansDistribution"`  // 达人粉丝数分布[1w-, 1w-10w, 10w-100w, 100w+]
+	MaleNum           int64   `json:"maleNum"`
+	FemaleNum         int64   `json:"femaleNum"`
+	// 达人地区分布(没有该数据)
+}
+
+type ReSelectionSampleData struct {
+	EnrollNum         []int64 `json:"enrollNum"`         // 报名人数
+	AgreeSampleNum    int64   `json:"agreeSampleNum"`    // 同意寄样数
+	SampledNum        int64   `json:"sampledNum"`        // 已发样数
+	AvgFanNum         int64   `json:"avgFanNum"`         // 平均粉丝数
+	SalesDistribution []int64 `json:"salesDistribution"` // 达人销量分布[100-, 100-1000, 1000-5000, 5000-1w, 1w-10w, 10w+]
+	FansDistribution  []int64 `json:"fansDistribution"`  // 达人粉丝数分布[1w-, 1w-10w, 10w-100w, 100w+]
+	MaleNum           int64   `json:"maleNum"`
+	FemaleNum         int64   `json:"femaleNum"`
+	// 达人地区分布(没有该数据)
+}
+
+type ReSelectionData struct {
+	EnrollNum          []int64     `json:"enrollNum"`         // 报名人数
+	PayData            []int64     `json:"payData"`           // 支付GMV
+	EstimateData       []int64     `json:"estimateData"`      // 结算GMV
+	ForecastCommission int64       `json:"forecastData"`      // 预估佣金支出
+	PayOrderNum        []int64     `json:"payOrderNum"`       // 支付订单量
+	SaleOrderNum       []int64     `json:"saleOrderNum"`      // 出单达人合计
+	AvgCommissionRate  float64     `json:"avgCommissionRate"` // 平均佣金率
+	TalentMsgList      []TalentMsg `json:"talentMsgList"`
+}
+
+type TalentMsg struct {
+	PhotoUrl string  `json:"photoUrl"`
+	Nickname string  `json:"nickname"`
+	Account  string  `json:"account"`
+	OrderNum int64   `json:"orderNum"`
+	GMV      float64 `json:"GMV"`
+}

+ 8 - 7
route/init.go

@@ -197,13 +197,14 @@ func InitRoute(r *gin.Engine) {
 		task.POST("/product/findAll", controller.TaskController{}.GetAllProduct) // 关联商品-已有商品展示
 		task.POST("/product/create", controller.TaskController{}.CreateProduct)  // 关联商品-新建商品
 
-		task.POST("/selection/create", controller.TaskController{}.CreateSelection)      // 创建带货任务
-		task.POST("/selection/update", controller.TaskController{}.UpdateSelection)      // 更新带货任务(样品奖励、补充信息)
-		task.POST("/selection/detail", controller.TaskController{}.GetSelectionDetail)   // 电商带货任务预览
-		task.POST("/selection/toReview", controller.TaskController{}.SelectionToReview)  // 电商带货提交审核
-		task.POST("/selection/task/list", controller.TaskController{}.SelectionTaskList) // 电商带货任务列表
-		task.POST("/selection/del", controller.TaskController{}.SelectionDel)            // 删除带货任务
-		task.POST("/selection/check", controller.TaskController{}.CheckSelectionInfo)    // 电商带货任务审核
+		task.POST("/selection/create", controller.TaskController{}.CreateSelection)       // 创建带货任务
+		task.POST("/selection/update", controller.TaskController{}.UpdateSelection)       // 更新带货任务(样品奖励、补充信息)
+		task.POST("/selection/detail", controller.TaskController{}.GetSelectionDetail)    // 电商带货任务预览
+		task.POST("/selection/toReview", controller.TaskController{}.SelectionToReview)   // 电商带货提交审核
+		task.POST("/selection/task/list", controller.TaskController{}.SelectionTaskList)  // 电商带货任务列表
+		task.POST("/selection/del", controller.TaskController{}.SelectionDel)             // 删除带货任务
+		task.POST("/selection/check", controller.TaskController{}.CheckSelectionInfo)     // 电商带货任务审核
+		task.POST("/selection/data/talent", controller.TaskController{}.TalentDataDetail) // 电商带货看数据-达人数据
 
 		task.POST("/project/create", controller.TaskController{}.CreateProject)              // 创建种草任务
 		task.POST("/project/update", controller.TaskController{}.UpdateProject)              // 更新公开种草任务