作者 yangfu

用户概要数据

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