param_role.go
1.2 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
package allied_creation_user
//################角色模块##################
//搜索角色列表
type (
ReqRoleSearch struct {
// 查询偏离量
Offset int `json:"offset"`
// 查询限制
Limit int `json:"limit"`
}
DataRoleSearch struct {
}
)
//获取角色
type (
ReqRoleGet struct {
RoleId int64 `json:"roleId"`
}
DataRoleGet struct {
}
)
//分配角色给多个用户
type (
ReqRoleAssign struct {
}
DataRoleAssign struct {
}
)
//创建角色
type (
ReqRole struct {
}
DataRole struct {
}
)
//取消用户分配的角色
type (
ReqRoleUnassign struct {
}
DataRoleUnassign struct {
}
)
//更新角色
type (
ReqRoleUpdate struct {
RoleId int64
}
DataRoleUpdate struct {
}
)
//移除角色
type (
ReqRoleRemove struct {
RoleId int64
}
DataRoleRemove struct {
}
)
//获取角色相关联的用户
type (
ReqRoleGetRelatedUser struct {
RoleId int64
OrgId int64
DepartmentId int64
}
DataRoleGetRelatedUser struct {
}
)
//获取角色菜单
type (
ReqRoleGetAccessMenus struct {
RoleId int64 `json:"roleId"`
}
DataRoleGetAccessMenus struct {
}
)
//设置角色菜单
type (
ReqRoleSetAccessMenus struct {
RoleId int64 `json:"roleId"`
}
DataRoleSetAccessMenus struct {
}
)