-
Notifications
You must be signed in to change notification settings - Fork 10
/
api_role_models.go
57 lines (43 loc) · 992 Bytes
/
api_role_models.go
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package sdk
type GetRoleListResp struct {
BaseResp
Result GetRoleListResult `json:"result"`
}
type GetUsersInRoleResp struct {
BaseResp
Result GetUserInRoleResult `json:"result"`
}
type GetRoleGroupResp struct {
BaseResp
RoleGroup RoleGroupV1 `json:"role_group"`
}
type GetRoleDetailResp struct {
BaseResp
Role Role `json:"role"`
}
type GetUserInRoleResult struct {
HasMore bool `json:"hasMore"`
NextCursor int64 `json:"nextCursor"`
UserList []UserList `json:"list"`
}
type GetRoleListResult struct {
HasMore bool `json:"hasMore"`
RoleList []RoleGroup `json:"list"`
}
type RoleGroup struct {
Name string `json:"name"`
GroupId int64 `json:"groupId"`
Roles []Role `json:"roles"`
}
type RoleGroupV1 struct {
Name string `json:"group_name"`
Roles []RoleV1 `json:"roles"`
}
type RoleV1 struct {
Name string `json:"role_name"`
Id int64 `json:"role_id"`
}
type Role struct {
Name string `json:"name"`
Id int64 `json:"id"`
}