Ver Fonte

allmerge

Xingyu Xian há 7 meses atrás
pai
commit
aaff657ea7
1 ficheiros alterados com 30 adições e 0 exclusões
  1. 30 0
      route/init.go

+ 30 - 0
route/init.go

@@ -5,6 +5,7 @@ import (
 	"github.com/sirupsen/logrus"
 	swaggerFiles "github.com/swaggo/files"
 	ginSwagger "github.com/swaggo/gin-swagger"
+	"youngee_b_api/app/controller"
 	"youngee_b_api/handler"
 	"youngee_b_api/middleware"
 	"youngee_b_api/model/http_model"
@@ -157,4 +158,33 @@ func InitRoute(r *gin.Engine) {
 		s.POST("/selection/task/settle", handler.WrapSettleSecTaskHandler)                    // 结算
 		s.POST("/selection/getAllSelection", handler.WrapGetAllSelectionHandler)              // 查询选品广场选品列表
 	}
+
+	// 工作台相关接口
+	workspace := r.Group("/youngee/b/workspace")
+	{
+		workspace.Use(middleware.LoginAuthMiddleware)
+		workspace.POST("/takegoods", controller.WorkspaceController{}.GetTakegoodsInfo) //工作台数据概览
+	}
+	// 任务中心相关接口
+	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)                    // 删除种草任务
+
+	}
 }