| | |
| | | locationAPI.GET("getLocationTreeList", locationController.GetLocationTreeList) //获取位置列表树 |
| | | } |
| | | |
| | | // 属性信息 |
| | | attributeController := new(controllers.AttributeController) |
| | | attributeAPI := r.Group(urlPrefix + "/attribute") |
| | | { |
| | | attributeAPI.POST("attribute", attributeController.Add) // 添加属性 |
| | | attributeAPI.PUT("updateAttribute/:id", attributeController.Update) // 修改属性 |
| | | attributeAPI.DELETE("delete/:id", attributeController.Delete) // 删除属性 |
| | | attributeAPI.GET("attribute", attributeController.List) // 获取属性 |
| | | //attributeAPI.GET("attribute/:id", attributeController.GetAttributeDetail) // 获取属性 |
| | | } |
| | | |
| | | // 业务类型 |
| | | operationTypeController := new(controllers.OperationTypeController) |
| | | operationTypeAPI := r.Group(urlPrefix + "/operationType") |