java-single/model/src/main/java/cn/bunny/entity/system/SysUser.java

72 lines
1.7 KiB
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 cn.bunny.entity.system;
import cn.bunny.entity.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serial;
import java.util.List;
@EqualsAndHashCode(callSuper = true)
@Data
@Schema(description = "用户")
@TableName("sys_user")
public class SysUser extends BaseEntity {
@Serial
private static final long serialVersionUID = 1L;
@Schema(description = "用户名")
@TableField("username")
private String username;
@Schema(description = "密码")
@TableField("password")
private String password;
@Schema(description = "姓名")
@TableField("name")
private String name;
@Schema(description = "手机")
@TableField("phone")
private String phone;
@Schema(description = "头像地址")
@TableField("head_url")
private String headUrl;
@Schema(description = "部门id")
@TableField("dept_id")
private Long deptId;
@Schema(description = "岗位id")
@TableField("post_id")
private Long postId;
@Schema(description = "描述")
@TableField("description")
private String description;
@Schema(description = "openId")
@TableField("open_id")
private String openId;
@Schema(description = "状态1正常 0停用")
@TableField("status")
private Integer status;
@TableField(exist = false)
private List<SysRole> roleList;
// 岗位
@TableField(exist = false)
private String postName;
// 部门
@TableField(exist = false)
private String deptName;
}