| | |
| | | */ |
| | | private String rongCloudToken; |
| | | |
| | | private List<String> commands; |
| | | |
| | | public SysUser() { |
| | | |
| | | } |
| | | |
| | | public List<String> getCommands() { |
| | | return commands; |
| | | } |
| | | |
| | | public void setCommands(List<String> commands) { |
| | | this.commands = commands; |
| | | } |
| | | |
| | | public String getRongCloudToken() { |
| | |
| | | } |
| | | |
| | | public boolean isAppLeader(String userId) { |
| | | return userId != null && this.getRoles().stream().anyMatch(sysRole -> sysRole.getRoleKey().contains("appLeader")); |
| | | List<SysRole> roles = this.getRoles(); |
| | | if(roles==null) |
| | | {return false;} |
| | | boolean appLeader = roles.stream().anyMatch(sysRole -> sysRole.getRoleKey().contains("appLeader")); |
| | | return userId != null && appLeader; |
| | | } |
| | | |
| | | public Long getDeptId() { |