| | |
| | | |
| | | // 作业类型 |
| | | operationTypeController := new(controllers.OperationTypeController) |
| | | operationTypeAPI := r.Group(urlPrefix + "/warehouse") |
| | | operationTypeAPI := r.Group(urlPrefix + "/operationType") |
| | | { |
| | | operationTypeAPI.GET("operationType", operationTypeController.List) // 获取作业类型列表 |
| | | operationTypeAPI.POST("operationType", operationTypeController.Add) // 新增作业类型 |
| | | operationTypeAPI.PUT("operationType/:id", operationTypeController.Update) // 修改作业类型 |
| | | operationTypeAPI.DELETE("operationType/:id", operationTypeController.Delete) // 删除作业类型 |
| | | } |
| | | |
| | | // 入库/出库 |
| | | operationController := new(controllers.OperationController) |
| | | operationAPI := r.Group(urlPrefix + "/operation") |
| | | { |
| | | operationAPI.GET("operation", operationController.List) |
| | | operationAPI.POST("operation", operationController.Add) |
| | | operationAPI.PUT("operation/:id", operationController.Update) |
| | | operationAPI.DELETE("operation/:id", operationController.Delete) |
| | | } |
| | | |
| | | //产品 |
| | |
| | | productAPI.POST("getProductList", productController.GetProductList) // 获取产品列表 |
| | | } |
| | | |
| | | locationController := new(controllers.LocationController) |
| | | locationAPI := r.Group(urlPrefix + "/location") |
| | | { |
| | | locationAPI.POST("listByType", locationController.ListLocationByType) |
| | | } |
| | | |
| | | return r |
| | | } |