| | |
| | | warehouseController := new(controllers.WarehouseController) |
| | | warehouseAPI := r.Group(urlPrefix + "/warehouse") |
| | | { |
| | | warehouseAPI.GET("warehouse", warehouseController.List) // 获取仓库列表 |
| | | warehouseAPI.POST("warehouse", warehouseController.Add) // 新增仓库 |
| | | warehouseAPI.PUT("warehouse/:id", warehouseController.Update) // 修改仓库 |
| | | warehouseAPI.DELETE("warehouse/:id", warehouseController.Delete) // 删除仓库 |
| | | warehouseAPI.GET("warehouse", warehouseController.List) // 获取仓库列表 |
| | | warehouseAPI.POST("warehouse", warehouseController.Add) // 新增仓库 |
| | | warehouseAPI.POST("updateWarehouse", warehouseController.UpdateWarehouse) // 修改仓库 |
| | | warehouseAPI.DELETE("warehouse/:id", warehouseController.Delete) // 删除仓库 |
| | | warehouseAPI.GET("getWarehouseDetails/:id", warehouseController.GetWarehouseDetails) // 获取仓库详情 |
| | | } |
| | | |
| | | // 作业类型 |
| | | // 业务类型 |
| | | operationTypeController := new(controllers.OperationTypeController) |
| | | operationTypeAPI := r.Group(urlPrefix + "/operationType") |
| | | { |
| | |
| | | operationAPI.POST("operation", operationController.Add) |
| | | operationAPI.PUT("operation/:id", operationController.Update) |
| | | operationAPI.DELETE("operation/:id", operationController.Delete) |
| | | operationAPI.PUT("Finish/:id", operationController.Finish) |
| | | } |
| | | |
| | | //产品 |