正在显示
2 个修改的文件
包含
105 行增加
和
104 行删除
1 | +package allied_creation_user | ||
2 | + | ||
3 | +//################角色模块################## | ||
4 | + | ||
5 | +//搜索角色列表 | ||
6 | +type ( | ||
7 | + ReqRoleSearch struct { | ||
8 | + // 查询偏离量 | ||
9 | + Offset int `json:"offset"` | ||
10 | + // 查询限制 | ||
11 | + Limit int `json:"limit"` | ||
12 | + } | ||
13 | + | ||
14 | + DataRoleSearch struct { | ||
15 | + } | ||
16 | +) | ||
17 | + | ||
18 | +//获取角色 | ||
19 | +type ( | ||
20 | + ReqRoleGet struct { | ||
21 | + RoleId int64 `json:"roleId"` | ||
22 | + } | ||
23 | + | ||
24 | + DataRoleGet struct { | ||
25 | + } | ||
26 | +) | ||
27 | + | ||
28 | +//分配角色给多个用户 | ||
29 | +type ( | ||
30 | + ReqRoleAssign struct { | ||
31 | + } | ||
32 | + | ||
33 | + DataRoleAssign struct { | ||
34 | + } | ||
35 | +) | ||
36 | + | ||
37 | +//创建角色 | ||
38 | +type ( | ||
39 | + ReqRole struct { | ||
40 | + } | ||
41 | + | ||
42 | + DataRole struct { | ||
43 | + } | ||
44 | +) | ||
45 | + | ||
46 | +//取消用户分配的角色 | ||
47 | +type ( | ||
48 | + ReqRoleUnassign struct { | ||
49 | + } | ||
50 | + | ||
51 | + DataRoleUnassign struct { | ||
52 | + } | ||
53 | +) | ||
54 | + | ||
55 | +//更新角色 | ||
56 | +type ( | ||
57 | + ReqRoleUpdate struct { | ||
58 | + RoleId int64 | ||
59 | + } | ||
60 | + | ||
61 | + DataRoleUpdate struct { | ||
62 | + } | ||
63 | +) | ||
64 | + | ||
65 | +//移除角色 | ||
66 | +type ( | ||
67 | + ReqRoleRemove struct { | ||
68 | + RoleId int64 | ||
69 | + } | ||
70 | + | ||
71 | + DataRoleRemove struct { | ||
72 | + } | ||
73 | +) | ||
74 | + | ||
75 | +//获取角色相关联的用户 | ||
76 | +type ( | ||
77 | + ReqRoleGetRelatedUser struct { | ||
78 | + RoleId int64 | ||
79 | + OrgId int64 | ||
80 | + DepartmentId int64 | ||
81 | + } | ||
82 | + | ||
83 | + DataRoleGetRelatedUser struct { | ||
84 | + } | ||
85 | +) | ||
86 | + | ||
87 | +//获取角色菜单 | ||
88 | +type ( | ||
89 | + ReqRoleGetAccessMenus struct { | ||
90 | + RoleId int64 `json:"roleId"` | ||
91 | + } | ||
92 | + | ||
93 | + DataRoleGetAccessMenus struct { | ||
94 | + } | ||
95 | +) | ||
96 | + | ||
97 | +//设置角色菜单 | ||
98 | +type ( | ||
99 | + ReqRoleSetAccessMenus struct { | ||
100 | + RoleId int64 `json:"roleId"` | ||
101 | + } | ||
102 | + | ||
103 | + DataRoleSetAccessMenus struct { | ||
104 | + } | ||
105 | +) |
@@ -223,107 +223,3 @@ type ( | @@ -223,107 +223,3 @@ type ( | ||
223 | DataUserAccessMenus struct { | 223 | DataUserAccessMenus struct { |
224 | } | 224 | } |
225 | ) | 225 | ) |
226 | - | ||
227 | -//################角色模块################## | ||
228 | - | ||
229 | -//搜索角色列表 | ||
230 | -type ( | ||
231 | - ReqRoleSearch struct { | ||
232 | - // 查询偏离量 | ||
233 | - Offset int `json:"offset"` | ||
234 | - // 查询限制 | ||
235 | - Limit int `json:"limit"` | ||
236 | - } | ||
237 | - | ||
238 | - DataRoleSearch struct { | ||
239 | - } | ||
240 | -) | ||
241 | - | ||
242 | -//获取角色 | ||
243 | -type ( | ||
244 | - ReqRoleGet struct { | ||
245 | - RoleId int64 `json:"roleId"` | ||
246 | - } | ||
247 | - | ||
248 | - DataRoleGet struct { | ||
249 | - } | ||
250 | -) | ||
251 | - | ||
252 | -//分配角色给多个用户 | ||
253 | -type ( | ||
254 | - ReqRoleAssign struct { | ||
255 | - } | ||
256 | - | ||
257 | - DataRoleAssign struct { | ||
258 | - } | ||
259 | -) | ||
260 | - | ||
261 | -//创建角色 | ||
262 | -type ( | ||
263 | - ReqRole struct { | ||
264 | - } | ||
265 | - | ||
266 | - DataRole struct { | ||
267 | - } | ||
268 | -) | ||
269 | - | ||
270 | -//取消用户分配的角色 | ||
271 | -type ( | ||
272 | - ReqRoleUnassign struct { | ||
273 | - } | ||
274 | - | ||
275 | - DataRoleUnassign struct { | ||
276 | - } | ||
277 | -) | ||
278 | - | ||
279 | -//更新角色 | ||
280 | -type ( | ||
281 | - ReqRoleUpdate struct { | ||
282 | - RoleId int64 | ||
283 | - } | ||
284 | - | ||
285 | - DataRoleUpdate struct { | ||
286 | - } | ||
287 | -) | ||
288 | - | ||
289 | -//移除角色 | ||
290 | -type ( | ||
291 | - ReqRoleRemove struct { | ||
292 | - RoleId int64 | ||
293 | - } | ||
294 | - | ||
295 | - DataRoleRemove struct { | ||
296 | - } | ||
297 | -) | ||
298 | - | ||
299 | -//获取角色相关联的用户 | ||
300 | -type ( | ||
301 | - ReqRoleGetRelatedUser struct { | ||
302 | - RoleId int64 | ||
303 | - OrgId int64 | ||
304 | - DepartmentId int64 | ||
305 | - } | ||
306 | - | ||
307 | - DataRoleGetRelatedUser struct { | ||
308 | - } | ||
309 | -) | ||
310 | - | ||
311 | -//获取角色菜单 | ||
312 | -type ( | ||
313 | - ReqRoleGetAccessMenus struct { | ||
314 | - RoleId int64 `json:"roleId"` | ||
315 | - } | ||
316 | - | ||
317 | - DataRoleGetAccessMenus struct { | ||
318 | - } | ||
319 | -) | ||
320 | - | ||
321 | -//设置角色菜单 | ||
322 | -type ( | ||
323 | - ReqRoleSetAccessMenus struct { | ||
324 | - RoleId int64 `json:"roleId"` | ||
325 | - } | ||
326 | - | ||
327 | - DataRoleSetAccessMenus struct { | ||
328 | - } | ||
329 | -) |
-
请 注册 或 登录 后发表评论