Browse Source

属性接口

pull/73/head
娄文智 3 years ago
parent
commit
d14b62e8b3
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      web/controllers/base/base.go

+ 3
- 3
web/controllers/base/base.go View File

@ -100,11 +100,11 @@ func RegisterRoutes() {
// Attribute的服务实例 // Attribute的服务实例
var serviceOfAttribute = svr.NewAttributeService() var serviceOfAttribute = svr.NewAttributeService()
// Attribute插入一条 // Attribute插入一条
// RegisterInsertOneAttribute(attribute, "/insertone", serviceOfAttribute.InsertOne)
RegisterInsertOneAttribute(attribute, "/insertone", serviceOfAttribute.InsertOne)
// Attribute插入多条 // Attribute插入多条
// RegisterInsertAttribute(attribute, "/insert", serviceOfAttribute.Insert) // RegisterInsertAttribute(attribute, "/insert", serviceOfAttribute.Insert)
// Attribute删除一条 // Attribute删除一条
// RegisterDeleteOneAttribute(attribute, "/deleteone", serviceOfAttribute.DeleteOne)
RegisterDeleteOneAttribute(attribute, "/deleteone", serviceOfAttribute.DeleteOne)
// Attribute删除多条 // Attribute删除多条
// RegisterDeleteAttribute(attribute, "/delete", serviceOfAttribute.Delete) // RegisterDeleteAttribute(attribute, "/delete", serviceOfAttribute.Delete)
// Attribute查询多条 // Attribute查询多条
@ -114,7 +114,7 @@ func RegisterRoutes() {
// Attribute查询一条 // Attribute查询一条
RegisterSelectOneAttribute(attribute, "/selectone", serviceOfAttribute.SelectOne) RegisterSelectOneAttribute(attribute, "/selectone", serviceOfAttribute.SelectOne)
// Attribute修改一条 // Attribute修改一条
// RegisterUpdateOneAttribute(attribute, "/updateone", serviceOfAttribute.UpdateOne)
RegisterUpdateOneAttribute(attribute, "/updateone", serviceOfAttribute.UpdateOne)
// Attribute修改多条 // Attribute修改多条
// RegisterUpdateAttribute(attribute, "/update", serviceOfAttribute.Update) // RegisterUpdateAttribute(attribute, "/update", serviceOfAttribute.Update)


Loading…
Cancel
Save