role.yaml
819 字节
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
version: v1
kind: HttpApi
metadata:
service: role
path: /roles
endpoints:
- method: createRole
route:
post: /
- method: updateRole
route:
put: /{roleId}
- method: getRole
route:
get: /{roleId}
- method: removeRole
route:
delete: /{roleId}
- method: listRole
route:
post: /search
- method: getRoleRelatedUsers
route:
get: /{roleId}/related-users
params:
- name: roleId
- name: orgId
- name: departmentId
- method: getRoleAccessMenus
route:
get: /{roleId}/access-menus
params:
- name: roleId
- method: updateRoleAccessMenus
route:
put: /{roleId}/access-menus
- method: assginRoleToUsers
route:
post: /assgin
- method: unAssginRoleToUsers
route:
post: /unassgin