jiangshuai
2023-11-08 2bfc37cbc679ceb5cef3b714e93ce4ebf55f9512
router/router.go
@@ -20,6 +20,7 @@
   r.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler))
   urlPrefix := "/api-wms/v1"
   r.Use(middleware.JWTAuth())
   // 组织管理
   departmentController := new(controllers.DepartmentController)
@@ -61,6 +62,7 @@
      locationAPI.POST("updateLocation", locationController.UpdateLocation)            //修改位置
      locationAPI.GET("getLocationDetails/:id", locationController.GetLocationDetails) //获取位置详情
      locationAPI.DELETE("deleteLocation/:id", locationController.DeleteLocation)      //删除位置
      locationAPI.GET("getLocationTreeList", locationController.GetLocationTreeList)   //获取位置列表树
   }
   // 业务类型
@@ -68,6 +70,7 @@
   operationTypeAPI := r.Group(urlPrefix + "/operationType")
   {
      operationTypeAPI.GET("operationType", operationTypeController.List)          // 获取作业类型列表
      operationTypeAPI.GET("listTransfer", operationTypeController.ListTransfer)   // 获取作业类型列表
      operationTypeAPI.POST("operationType", operationTypeController.Add)          // 新增作业类型
      operationTypeAPI.PUT("operationType/:id", operationTypeController.Update)    // 修改作业类型
      operationTypeAPI.DELETE("operationType/:id", operationTypeController.Delete) // 删除作业类型
@@ -141,5 +144,22 @@
      reportFormsAPI.POST("getLocationForms", reportFormsController.GetLocationForms)   //获取位置报表
   }
   //重订货规则
   reorderRuleController := new(controllers.ReorderRuleController)
   reorderRuleAPI := r.Group(urlPrefix + "/reorderRule")
   {
      reorderRuleAPI.POST("addReorderRule", reorderRuleController.AddReorderRule)                 //添加重订货规则
      reorderRuleAPI.POST("getReorderRuleList", reorderRuleController.GetReorderRuleList)         //获取重订货规则列表
      reorderRuleAPI.POST("getAmountAndPrediction", reorderRuleController.GetAmountAndPrediction) //获取在库与预测数量
      reorderRuleAPI.POST("updateReorderRule", reorderRuleController.UpdateReorderRule)           //更新重订货规则
      reorderRuleAPI.POST("orderAgain", reorderRuleController.OrderAgain)                         //再订一次
   }
   attachmentController := new(controllers.AttachmentController)
   attachmentAPI := r.Group(urlPrefix + "/attachment")
   {
      attachmentAPI.POST("uploadFiles", attachmentController.UploadFiles) //上传文件
   }
   return r
}