登录信息增加字段
This commit is contained in:
@ -1,6 +1,5 @@
|
||||
package com.mosty.common.token;
|
||||
|
||||
import cn.hutool.json.JSON;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.auth0.jwt.JWT;
|
||||
import com.auth0.jwt.algorithms.Algorithm;
|
||||
@ -9,12 +8,9 @@ import com.auth0.jwt.interfaces.DecodedJWT;
|
||||
import com.auth0.jwt.interfaces.JWTVerifier;
|
||||
import com.mosty.common.base.exception.BusinessException;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.ObjectUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.http.HttpStatus;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import static com.mosty.common.base.constant.SystemConfigConstants.TOKEN_ISSUER;
|
||||
import static com.mosty.common.base.constant.SystemConfigConstants.TOKEN_KEY;
|
||||
|
||||
@ -79,6 +75,7 @@ public class JWTUtil {
|
||||
jwt.getClaim("idEntityCard").asString(),
|
||||
jwt.getClaim("isVirtualUser").asString(),
|
||||
jwt.getClaim("level").asString(),
|
||||
jwt.getClaim("xfllId").asString(),
|
||||
jwt.getClaim("deptId").asLong(),
|
||||
jwt.getClaim("deptName").asString(),
|
||||
jwt.getClaim("deptCode").asString(),
|
||||
|
@ -52,6 +52,9 @@ public class UserInfo implements Serializable {
|
||||
@ApiModelProperty(value = "数据权限范围")
|
||||
public final String level;
|
||||
|
||||
@ApiModelProperty(value = "巡防力量ID")
|
||||
public final String xfllId;
|
||||
|
||||
@ApiModelProperty(value = "部门id")
|
||||
public final Long deptId;
|
||||
|
||||
|
Reference in New Issue
Block a user