Browse Source

更新角色查询列表接口

lijian 6 năm trước cách đây
mục cha
commit
fe5761685e
1 tập tin đã thay đổi với 0 bổ sung5 xóa
  1. 0 5
      services/knowoapi/controllers/role.go

+ 0 - 5
services/knowoapi/controllers/role.go

@@ -67,11 +67,6 @@ func (a *RoleController) Put() {
 // Get get roles
 // GET /admin/role?pi=&ps=&name
 func (a *RoleController) Get() {
-	role := new(models.Role)
-	if err := parseBody(a.Ctx, role); err != nil {
-		badRequest(a.Ctx, err)
-		return
-	}
 	pi, err := a.Ctx.URLParamInt("pi")
 	if err != nil {
 		badRequest(a.Ctx, err)