| | |
| | | locationAPI.DELETE("deleteLocation/:id", locationController.DeleteLocation) //删除位置 |
| | | } |
| | | |
| | | // 作业类型 |
| | | // 业务类型 |
| | | operationTypeController := new(controllers.OperationTypeController) |
| | | operationTypeAPI := r.Group(urlPrefix + "/operationType") |
| | | { |
| | |
| | | { |
| | | operationAPI.GET("operation", operationController.List) |
| | | operationAPI.POST("operation", operationController.Add) |
| | | operationAPI.PUT("operation/:id", operationController.Update) |
| | | operationAPI.POST("update", operationController.Update) |
| | | operationAPI.DELETE("operation/:id", operationController.Delete) |
| | | operationAPI.PUT("finish/:id", operationController.Finish) |
| | | } |
| | | |
| | | //产品 |
| | |
| | | productAPI.GET("getProductCategoryDetails/:id", productController.GetProductCategoryDetails) //获取产品类型详情 |
| | | productAPI.POST("updateProductCategory", productController.UpdateProductCategory) //修改产品类型 |
| | | productAPI.DELETE("deleteProductCategory/:id", productController.DeleteProductCategory) //删除产品类型 |
| | | |
| | | productAPI.POST("listOperaton", productController.ListOperation) //查看产品的历史出入库信息 |
| | | } |
| | | |
| | | return r |