docs: 注释优化

This commit is contained in:
郝先瑞 2023-11-01 17:44:40 +08:00
parent cdda1bbcd8
commit 8034cde0aa

View File

@ -59,14 +59,25 @@ public class SecurityUtils {
return String.valueOf(getTokenAttributes().get("jti"));
}
public static Long getExp() {
return Convert.toLong(getTokenAttributes().get("jti"));
return Convert.toLong(getTokenAttributes().get("exp"));
}
/**
* 获取数据权限范围
*
* @return
*/
public static Integer getDataScope() {
return Convert.toInt(getTokenAttributes().get("dataScope"));
}
/**
* 获取会员ID
*
* @return 会员ID
*/
public static Long getMemberId() {
return Convert.toLong(getTokenAttributes().get("memberId"));
}