作者 yangfu

用户概要数据

@@ -18,7 +18,7 @@ metadata: @@ -18,7 +18,7 @@ metadata:
18 delete: /{usersId} 18 delete: /{usersId}
19 - method: listUsers 19 - method: listUsers
20 route: 20 route:
21 - get: /search 21 + post: /search
22 - method: getUsersAccessMenus 22 - method: getUsersAccessMenus
23 route: 23 route:
24 get: /{usersId}/access-menus 24 get: /{usersId}/access-menus
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: usersProfile
  5 + description: 用户概要数据
  6 + attributes:
  7 + - ref: usersId
  8 + required: true
  9 + - ref: usersName
  10 + required: true
  11 + - ref: usersCode
  12 + required: true
  13 + - ref: avator
  14 + required: true
@@ -12,7 +12,7 @@ metadata: @@ -12,7 +12,7 @@ metadata:
12 - ref: departmentId 12 - ref: departmentId
13 required: false 13 required: false
14 result: 14 result:
15 - - name: role 15 + - name: relatedUsers
16 type: 16 type:
17 - schema: role 17 + array: int64
18 required: true 18 required: true
@@ -3,7 +3,7 @@ kind: Method @@ -3,7 +3,7 @@ kind: Method
3 metadata: 3 metadata:
4 name: updateRoleAccessMenus 4 name: updateRoleAccessMenus
5 type: command 5 type: command
6 - description: 角色设置菜单 6 + description: 设置角色菜单
7 payload: 7 payload:
8 - ref: roleId 8 - ref: roleId
9 required: true 9 required: true
@@ -14,7 +14,7 @@ metadata: @@ -14,7 +14,7 @@ metadata:
14 - ref: usersCode 14 - ref: usersCode
15 required: false 15 required: false
16 result: 16 result:
17 - - name: users 17 + - name: usersProfile
18 type: 18 type:
19 - schema: users 19 + schema: usersProfile
20 required: true 20 required: true
@@ -7,8 +7,6 @@ metadata: @@ -7,8 +7,6 @@ metadata:
7 payload: 7 payload:
8 - ref: usersId 8 - ref: usersId
9 required: true 9 required: true
10 - - ref: usersCode  
11 - required: true  
12 - ref: usersName 10 - ref: usersName
13 required: true 11 required: true
14 - ref: avator 12 - ref: avator
@@ -18,7 +16,7 @@ metadata: @@ -18,7 +16,7 @@ metadata:
18 required: true 16 required: true
19 - ref: msg 17 - ref: msg
20 required: true 18 required: true
21 - - name: users 19 + - name: usersProfile
22 type: 20 type:
23 - schema: users 21 + schema: usersProfile
24 required: true 22 required: true