docs 优化枚举类型注释

This commit is contained in:
AprilWind 2025-04-23 12:30:07 +08:00
parent 3f680385a9
commit d7d7dcbcf7
2 changed files with 11 additions and 7 deletions

View File

@ -5,7 +5,6 @@ import lombok.Getter;
/**
* 设备类型
* 针对一套 用户体系
*
* @author Lion Li
*/
@ -29,9 +28,12 @@ public enum DeviceType {
XCX("xcx"),
/**
* social第三方端
* 第三方社交登录平台
*/
SOCIAL("social");
/**
* 设备标识
*/
private final String device;
}

View File

@ -1,12 +1,11 @@
package org.dromara.common.core.enums;
import org.dromara.common.core.utils.StringUtils;
import lombok.AllArgsConstructor;
import lombok.Getter;
import org.dromara.common.core.utils.StringUtils;
/**
* 设备类型
* 针对多套 用户体系
* 用户类型
*
* @author Lion Li
*/
@ -15,15 +14,18 @@ import lombok.Getter;
public enum UserType {
/**
* pc端
* 后台系统用户
*/
SYS_USER("sys_user"),
/**
* app端
* 移动客户端用户
*/
APP_USER("app_user");
/**
* 用户类型标识用于 token权限识别等
*/
private final String userType;
public static UserType getUserType(String str) {