mirror of
				https://github.com/continew-org/continew-admin.git
				synced 2025-11-03 22:57:14 +08:00 
			
		
		
		
	优化:使用枚举存储性别、状态等信息(采用 MyBatis Plus#通用枚举扩展),常量类则专注于存储全局变量,例如:缓存键、默认值等
This commit is contained in:
		@@ -21,6 +21,8 @@ import java.time.LocalDateTime;
 | 
			
		||||
 | 
			
		||||
import lombok.Data;
 | 
			
		||||
 | 
			
		||||
import top.charles7c.cnadmin.common.enums.GenderEnum;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * 登录用户信息
 | 
			
		||||
 *
 | 
			
		||||
@@ -50,7 +52,7 @@ public class LoginUser implements Serializable {
 | 
			
		||||
    /**
 | 
			
		||||
     * 性别(0未知 1男 2女)
 | 
			
		||||
     */
 | 
			
		||||
    private Integer gender;
 | 
			
		||||
    private GenderEnum gender;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 手机号码
 | 
			
		||||
@@ -72,11 +74,6 @@ public class LoginUser implements Serializable {
 | 
			
		||||
     */
 | 
			
		||||
    private String notes;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 状态(1启用 2禁用)
 | 
			
		||||
     */
 | 
			
		||||
    private Integer status;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 最后一次修改密码的时间
 | 
			
		||||
     */
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user