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