| | |
| | | operationController := new(controllers.OperationController) |
| | | operationAPI := r.Group(urlPrefix + "/operation") |
| | | { |
| | | //operationAPI.GET() |
| | | operationAPI.GET("operation", operationController.List) |
| | | operationAPI.POST("operation", operationController.Add) |
| | | operationAPI.PUT("operation/:id", operationController.Update) |
| | | operationAPI.DELETE("operation/:id", operationController.Delete) |
| | | } |
| | | |
| | | //产品 |
| | |
| | | productAPI.DELETE("deleteProductCategory/:id", productController.DeleteProductCategory) //删除产品类型 |
| | | } |
| | | |
| | | locationController := new(controllers.LocationController) |
| | | locationAPI := r.Group(urlPrefix + "/location") |
| | | { |
| | | locationAPI.POST("listByType", locationController.ListLocationByType) |
| | | } |
| | | |
| | | return r |
| | | } |