feat: NAS登录
This commit is contained in:
parent
cc3f07fbf1
commit
88c746f896
@ -111,6 +111,7 @@ public class SysLoginController {
|
||||
Set<String> roles = permissionService.getRolePermission(user);
|
||||
// 权限集合
|
||||
Set<String> permissions = permissionService.getMenuPermission(user);
|
||||
if ("01".equals(user.getUserType())) {
|
||||
try {
|
||||
// get请求获取群晖token
|
||||
// 使用UriComponentsBuilder构建带有查询参数的URL
|
||||
@ -134,6 +135,7 @@ public class SysLoginController {
|
||||
} catch (RestClientException e) {
|
||||
logger.error("请求群晖token失败,异常信息", e);
|
||||
}
|
||||
}
|
||||
AjaxResult ajax = AjaxResult.success();
|
||||
ajax.put("user", user);
|
||||
ajax.put("roles", roles);
|
||||
|
@ -43,6 +43,9 @@ public class SysUser extends BaseEntity {
|
||||
@Excel(name = "登录名称")
|
||||
private String userName;
|
||||
|
||||
// 用户类型
|
||||
private String userType;
|
||||
|
||||
/**
|
||||
* 用户昵称
|
||||
*/
|
||||
@ -191,6 +194,14 @@ public class SysUser extends BaseEntity {
|
||||
this.deptId = deptId;
|
||||
}
|
||||
|
||||
public String getUserType() {
|
||||
return userType;
|
||||
}
|
||||
|
||||
public void setUserType(String userType) {
|
||||
this.userType = userType;
|
||||
}
|
||||
|
||||
@Size(min = 0, max = 30, message = "用户昵称长度不能超过30个字符")
|
||||
public String getNickName() {
|
||||
return nickName;
|
||||
|
Loading…
Reference in New Issue
Block a user