| | |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonInclude; |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.annotation.Excel.ColumnType; |
| | | import com.ruoyi.common.annotation.Excel.Type; |
| | |
| | | |
| | | /** 相机操控优先级 */ |
| | | private Integer cameraPriority; |
| | | |
| | | /** 用户融云token */ |
| | | private String rongCloudToken; |
| | | |
| | | public SysUser() |
| | | { |
| | | |
| | | } |
| | | |
| | | public String getRongCloudToken() { |
| | | return rongCloudToken; |
| | | } |
| | | |
| | | public void setRongCloudToken(String rongCloudToken) { |
| | | this.rongCloudToken = rongCloudToken; |
| | | } |
| | | |
| | | public Integer getCameraPriority() { |
| | |
| | | { |
| | | return userId != null && userId.equals("1"); |
| | | } |
| | | public boolean isApp() |
| | | { |
| | | return isApp(this.userId); |
| | | } |
| | | public boolean isApp(String userId) |
| | | { |
| | | return userId != null && this.getRoles().stream().anyMatch(sysRole -> sysRole.getRoleKey().contains("appLeader")); |
| | | } |
| | | |
| | | public Long getDeptId() |
| | | { |