liujiandao
2023-10-31 8fb1d1a1389c5f981248b459257ceb1ac4e2b28d
router/router.go
@@ -68,6 +68,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 +142,16 @@
      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)                         //再订一次
   }
   return r
}