|
@@ -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
|
-) |
|
|