wanjianli
2023-09-18 861a89be3807fb8b9b1e8863adc165cc78bb7700
router/router.go
@@ -53,7 +53,7 @@
   // 作业类型
   operationTypeController := new(controllers.OperationTypeController)
   operationTypeAPI := r.Group(urlPrefix + "/warehouse")
   operationTypeAPI := r.Group(urlPrefix + "/operationType")
   {
      operationTypeAPI.GET("operationType", operationTypeController.List)          // 获取作业类型列表
      operationTypeAPI.POST("operationType", operationTypeController.Add)          // 新增作业类型
@@ -61,5 +61,13 @@
      operationTypeAPI.DELETE("operationType/:id", operationTypeController.Delete) // 删除作业类型
   }
   // 入库/出库
   operationController := new(controllers.OperationController)
   operationAPI := r.Group(urlPrefix + "/operation")
   {
      //operationAPI.GET()
      operationAPI.POST("operation", operationController.Add)
   }
   return r
}