docs:添加功能描述

This commit is contained in:
sugus 2025-07-14 16:05:21 +08:00
parent f03fbb3332
commit 30b6456b76

View File

@ -127,6 +127,11 @@ public class SecurityUtils {
return jwt.getPayload("sub").toString();
}
/**
* 获取当前系统用户类型
* @return 系统用户类型
*/
public static UserTypeEnum getCurrentUserType(){
UserDetails userDetails = getCurrentUser();
// Java 对象转换为 JSONObject 对象