| | |
| | | package com.ruoyi.system.domain.vo; |
| | | |
| | | import com.ruoyi.common.core.constant.UserConstants; |
| | | import com.ruoyi.common.translation.annotation.Translation; |
| | | import com.ruoyi.common.translation.constant.TransConstant; |
| | | import lombok.Data; |
| | |
| | | /** |
| | | * 用户信息视图对象 sys_user |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-02-01 |
| | | * @author Michelle.Chung |
| | | */ |
| | | @Data |
| | | public class SysUserVo implements Serializable { |
| | |
| | | * 用户ID |
| | | */ |
| | | private Long userId; |
| | | |
| | | /** |
| | | * 租户ID |
| | | */ |
| | | private String tenantId; |
| | | |
| | | /** |
| | | * 部门ID |
| | |
| | | * 数据权限 当前角色ID |
| | | */ |
| | | private Long roleId; |
| | | |
| | | public boolean isAdmin() { |
| | | return UserConstants.SUPER_ADMIN_ID.equals(this.userId); |
| | | } |
| | | |
| | | } |