| | |
| | | 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) // 获取仓库详情 |
| | | } |
| | | |
| | | // 作业类型 |
| | | // 位置信息 |
| | | locationController := new(controllers.LocationController) |
| | | locationAPI := r.Group(urlPrefix + "/location") |
| | | { |
| | | locationAPI.POST("addLocation", locationController.AddLocation) //添加位置信息 |
| | | locationAPI.POST("getLocationList", locationController.GetLocationList) //获取位置列表 |
| | | locationAPI.POST("updateLocation", locationController.UpdateLocation) //修改位置 |
| | | locationAPI.GET("getLocationDetails/:id", locationController.GetLocationDetails) //获取位置详情 |
| | | locationAPI.DELETE("deleteLocation/:id", locationController.DeleteLocation) //删除位置 |
| | | } |
| | | |
| | | // 业务类型 |
| | | operationTypeController := new(controllers.OperationTypeController) |
| | | operationTypeAPI := r.Group(urlPrefix + "/operationType") |
| | | { |
| | |
| | | operationController := new(controllers.OperationController) |
| | | operationAPI := r.Group(urlPrefix + "/operation") |
| | | { |
| | | //operationAPI.GET() |
| | | operationAPI.GET("operation", operationController.List) |
| | | operationAPI.POST("operation", operationController.Add) |
| | | operationAPI.POST("update", operationController.Update) |
| | | operationAPI.DELETE("operation/:id", operationController.Delete) |
| | | operationAPI.PUT("finish/:id", operationController.Finish) |
| | | } |
| | | |
| | | //产品 |