mirror of https://gitee.com/stylefeng/roses
【7.6.0】【sys】【permission】整理用户首页信息的pojo
parent
ed1e368836
commit
f91fc9e59c
|
@ -0,0 +1,52 @@
|
|||
package cn.stylefeng.roses.kernel.sys.modular.login.pojo;
|
||||
|
||||
import cn.stylefeng.roses.kernel.file.api.format.FileUrlFormatProcess;
|
||||
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
|
||||
import cn.stylefeng.roses.kernel.rule.annotation.SimpleFieldFormat;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* 首页需要的用户信息,包括【个人基本信息】、【菜单信息】、【当前登录的应用】、【当前登录的组织机构身份】
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @since 2023/6/18 22:03
|
||||
*/
|
||||
@Data
|
||||
public class UserIndexInfo {
|
||||
|
||||
/**
|
||||
* 用户主键id
|
||||
*/
|
||||
@ChineseDescription("用户主键id")
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 真实姓名
|
||||
*/
|
||||
@ChineseDescription("真实姓名")
|
||||
private String realName;
|
||||
|
||||
/**
|
||||
* 用户头像的文件id
|
||||
*/
|
||||
@ChineseDescription("用户头像的文件id")
|
||||
@SimpleFieldFormat(processClass = FileUrlFormatProcess.class)
|
||||
private Long avatarFileId;
|
||||
|
||||
/**
|
||||
* 当前用户的部门和任职信息
|
||||
*/
|
||||
@ChineseDescription("当前用户的部门和任职信息")
|
||||
private List<UserOrgInfo> currentUserOrgInfo;
|
||||
|
||||
/**
|
||||
* 当前用户的权限编码集合,包括【菜单编码】和【菜单功能编码】
|
||||
*/
|
||||
@ChineseDescription("当前用户的权限编码集合,包括【菜单编码】和【菜单功能编码】")
|
||||
private Set<String> permissionCodeList;
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,78 @@
|
|||
package cn.stylefeng.roses.kernel.sys.modular.login.pojo;
|
||||
|
||||
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 用户所拥有的菜单信息
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @since 2023/6/18 22:26
|
||||
*/
|
||||
@Data
|
||||
public class UserMenuInfo {
|
||||
|
||||
/**
|
||||
* 菜单id
|
||||
*/
|
||||
@ChineseDescription("菜单id")
|
||||
private Long menuId;
|
||||
|
||||
/**
|
||||
* 菜单的名称
|
||||
*/
|
||||
@ChineseDescription("菜单的名称")
|
||||
private String title;
|
||||
|
||||
/**
|
||||
* 菜单的图标
|
||||
*/
|
||||
@ChineseDescription("菜单的图标")
|
||||
private String icon;
|
||||
|
||||
/**
|
||||
* 是否隐藏, 0否,1是(仅注册路由不显示左侧菜单)
|
||||
*/
|
||||
@ChineseDescription("是否隐藏, 0否,1是(仅注册路由不显示左侧菜单)")
|
||||
private Boolean hide;
|
||||
|
||||
/**
|
||||
* 配置选中的path地址,比如修改页面不在侧栏,打开后侧栏就没有选中,这个配置选中地址,非必须
|
||||
*/
|
||||
@ChineseDescription("配置选中的path地址")
|
||||
private String active;
|
||||
|
||||
/**
|
||||
* 路由地址(要以/开头),必填
|
||||
*/
|
||||
@ChineseDescription("路由地址(要以/开头),必填")
|
||||
private String path;
|
||||
|
||||
/**
|
||||
* 组件地址(组件要放在view目录下),父级可以省略
|
||||
*/
|
||||
@ChineseDescription("组件地址(组件要放在view目录下),父级可以省略")
|
||||
private String component;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
@ChineseDescription("排序")
|
||||
private BigDecimal sortNumber;
|
||||
|
||||
/**
|
||||
* 路由元信息
|
||||
*/
|
||||
@ChineseDescription("路由元信息")
|
||||
private String meta;
|
||||
|
||||
/**
|
||||
* 子级菜单
|
||||
*/
|
||||
@ChineseDescription("子级菜单")
|
||||
private List<UserMenuInfo> children;
|
||||
|
||||
}
|
|
@ -0,0 +1,58 @@
|
|||
package cn.stylefeng.roses.kernel.sys.modular.login.pojo;
|
||||
|
||||
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* 用户组织机构的绑定关系
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @since 2023/6/18 22:12
|
||||
*/
|
||||
@Data
|
||||
public class UserOrgInfo {
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
@ChineseDescription("用户id")
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 组织机构id
|
||||
*/
|
||||
@ChineseDescription("组织机构id")
|
||||
private Long orgId;
|
||||
|
||||
/**
|
||||
* 公司的名称
|
||||
*/
|
||||
@ChineseDescription("公司的名称")
|
||||
private String companyName;
|
||||
|
||||
/**
|
||||
* 部门的名称
|
||||
*/
|
||||
@ChineseDescription("部门的名称")
|
||||
private String deptName;
|
||||
|
||||
/**
|
||||
* 职务名称
|
||||
*/
|
||||
@ChineseDescription("职务名称")
|
||||
private String positionName;
|
||||
|
||||
/**
|
||||
* 是否是主要任职部门
|
||||
*/
|
||||
@ChineseDescription("是否是主要任职部门")
|
||||
private Boolean mainFlag;
|
||||
|
||||
/**
|
||||
* 是否是当前登录用户激活的(选中的)
|
||||
*/
|
||||
@ChineseDescription("是否是当前登录用户激活的(选中的)")
|
||||
private Boolean currentSelectFlag;
|
||||
|
||||
}
|
Loading…
Reference in New Issue