Xingyu Xian hai 7 meses
pai
achega
5efcbcf3b3
Modificáronse 1 ficheiros con 23 adicións e 0 borrados
  1. 23 0
      route/init.go

+ 23 - 0
route/init.go

@@ -157,4 +157,27 @@ func InitRoute(r *gin.Engine) {
 		s.POST("/selection/task/settle", handler.WrapSettleSecTaskHandler)                    // 结算
 		s.POST("/selection/getAllSelection", handler.WrapGetAllSelectionHandler)              // 查询选品广场选品列表
 	}
+
+	// 任务中心相关接口
+	task := r.Group("/youngee/b/task")
+	{
+		task.Use(middleware.LoginAuthMiddleware)
+		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/task/list", controller.TaskController{}.SelectionTaskList) // 电商带货任务列表
+		task.POST("/selection/del", controller.TaskController{}.SelectionDel)            // 删除带货任务
+		task.POST("/selection/check", controller.TaskController{}.CheckSelectionInfo)    // 电商带货任务审核
+
+		task.POST("/project/create", controller.TaskController{}.CreateProject)              // 创建种草任务
+		task.POST("/project/update", controller.TaskController{}.UpdateProject)              // 更新种草任务
+		task.POST("/project/target/update", controller.TaskController{}.UpdateProjectTarget) // 更新定向种草任务
+		task.POST("/project/detail", controller.TaskController{}.GetProjectDetail)           // 品牌种草任务预览
+		task.POST("/project/task/list", controller.TaskController{}.ProjectTaskList)         // 公开种草任务列表
+		task.POST("/project/del", controller.TaskController{}.ProjectDel)                    // 删除种草任务
+
+	}
 }