Files
youlai-boot/src/main/java/com/youlai/boot/security/model/UserAuthInfo.java

59 lines
886 B
Java
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package com.youlai.boot.security.model;
import lombok.Data;
import java.util.Set;
/**
* 用户认证信息
* <p>
* 用于登录认证过程中的用户信息承载,包含用户名、密码、状态、角色等与认证/授权相关的数据。
* </p>
*
* @author Ray.Hao
* @since 2025/12/16
*/
@Data
public class UserAuthInfo {
/**
* 用户ID
*/
private Long userId;
/**
* 用户名
*/
private String username;
/**
* 昵称
*/
private String nickname;
/**
* 部门ID
*/
private Long deptId;
/**
* 密码(加密后)
*/
private String password;
/**
* 状态1:启用 其它:禁用)
*/
private Integer status;
/**
* 角色集合
*/
private Set<String> roles;
/**
* 数据权限范围
*/
private Integer dataScope;
}