...
|
...
|
@@ -223,107 +223,3 @@ type ( |
|
|
DataUserAccessMenus struct {
|
|
|
}
|
|
|
) |
|
|
|
|
|
//################角色模块##################
|
|
|
|
|
|
//搜索角色列表
|
|
|
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 {
|
|
|
}
|
|
|
) |
...
|
...
|
|