| | |
| | | /**
|
| | | * 部门ID
|
| | | */
|
| | | private Long deptId;
|
| | | private Long [] deptIds;
|
| | |
|
| | | /**
|
| | | * 用户唯一标识
|
| | |
| | | */
|
| | | private Integer tenantId;
|
| | |
|
| | | /**
|
| | | * 当前部门id
|
| | | */
|
| | | private Long currentDeptId;
|
| | |
|
| | | public LoginUser()
|
| | | {
|
| | | }
|
| | |
| | | this.permissions = permissions;
|
| | | }
|
| | |
|
| | | public LoginUser(Long userId, Long deptId, SysUser user, Set<String> permissions)
|
| | | public LoginUser(Long userId, Long [] deptId, SysUser user, Set<String> permissions)
|
| | | {
|
| | | this.userId = userId;
|
| | | this.deptId = deptId;
|
| | | this.deptIds = deptId;
|
| | | this.user = user;
|
| | | this.permissions = permissions;
|
| | | }
|
| | |
|
| | | public LoginUser(Long userId, Long deptId, SysUser user,Integer tenantId, Set<String> permissions)
|
| | | public LoginUser(Long userId, Long [] deptIds, SysUser user,Integer tenantId, Set<String> permissions)
|
| | | {
|
| | | this.userId = userId;
|
| | | this.deptId = deptId;
|
| | | this.deptIds = deptIds;
|
| | | this.user = user;
|
| | | this.permissions = permissions;
|
| | | this.tenantId = tenantId;
|
| | | }
|
| | |
|
| | | public LoginUser(Long userId, Long [] deptIds, SysUser user,Integer tenantId,Long currentDeptId, Set<String> permissions)
|
| | | {
|
| | | this.userId = userId;
|
| | | this.deptIds = deptIds;
|
| | | this.user = user;
|
| | | this.permissions = permissions;
|
| | | this.tenantId = tenantId;
|
| | | this.currentDeptId = currentDeptId;
|
| | | }
|
| | |
|
| | | public Long getUserId()
|
| | |
| | | this.userId = userId;
|
| | | }
|
| | |
|
| | | public Long getDeptId()
|
| | | public Long [] getDeptIds()
|
| | | {
|
| | | return deptId;
|
| | | return deptIds;
|
| | | }
|
| | |
|
| | | public void setDeptId(Long deptId)
|
| | | public void setDeptId(Long [] deptIds)
|
| | | {
|
| | | this.deptId = deptId;
|
| | | this.deptIds = deptIds;
|
| | | }
|
| | |
|
| | | public String getToken()
|
| | |
| | | public void setTenantId(Integer tenantId) {
|
| | | this.tenantId = tenantId;
|
| | | }
|
| | |
|
| | | public void setDeptIds(Long[] deptIds) {
|
| | | this.deptIds = deptIds;
|
| | | }
|
| | |
|
| | | public Long getCurrentDeptId() {
|
| | | return currentDeptId;
|
| | | }
|
| | |
|
| | | public void setCurrentDeptId(Long currentDeptId) {
|
| | | this.currentDeptId = currentDeptId;
|
| | | }
|
| | | }
|