package com.panzhihua.sangeshenbian.model.entity;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
|
import java.time.LocalDateTime;
|
import java.util.List;
|
|
/**
|
* 系统用户
|
* @author zhibing.pu
|
* @Date 2025/2/18 22:18
|
*/
|
@Data
|
@ApiModel
|
@TableName("sgsb_system_user")
|
public class SystemUser {
|
/**
|
* 主键
|
*/
|
@TableId(value = "id", type = IdType.AUTO)
|
@ApiModelProperty(value = "数据ID")
|
private Integer id;
|
/**
|
* 姓名
|
*/
|
@TableField("name")
|
@ApiModelProperty(value = "姓名", required = true)
|
private String name;
|
/**
|
* 手机号
|
*/
|
@TableField("phone")
|
@ApiModelProperty(value = "手机号", required = true)
|
private String phone;
|
/**
|
* 密码
|
*/
|
@TableField("password")
|
@ApiModelProperty(value = "密码", required = true)
|
private String password;
|
/**
|
* 一级单位id
|
*/
|
@TableField("one_department_id")
|
@ApiModelProperty(value = "一级单位id", required = true)
|
private Integer oneDepartmentId;
|
/**
|
* 二级单位id
|
*/
|
@TableField("two_department_id")
|
@ApiModelProperty(value = "二级单位id")
|
private Integer twoDepartmentId;
|
/**
|
* 三级单位id
|
*/
|
@TableField("three_department_id")
|
@ApiModelProperty(value = "三级单位id")
|
private Integer threeDepartmentId;
|
/**
|
* 四级单位id
|
*/
|
@TableField("four_department_id")
|
@ApiModelProperty(value = "四级单位id")
|
private Integer fourDepartmentId;
|
/**
|
* 是否是管理员(0=否,1=是)
|
*/
|
@TableField("is_admin")
|
@ApiModelProperty(value = "是否是管理员(0=否,1=是)", required = true)
|
private Integer isAdmin;
|
/**
|
* 职位id
|
*/
|
@TableField("system_post_id")
|
@ApiModelProperty(value = "职位id", required = true)
|
private Integer systemPostId;
|
/**
|
* 角色id
|
*/
|
@TableField("system_role_id")
|
@ApiModelProperty(value = "角色id", required = true)
|
private Integer systemRoleId;
|
/**
|
* 账号层级(1=市级账号,2=区县账号,3=街道账号,4=社区账号)
|
*/
|
@TableField("account_level")
|
@ApiModelProperty(value = "账号层级(1=市级账号,2=区县账号,3=街道账号,4=社区账号,5=党员账号)", required = true)
|
private Integer accountLevel;
|
/**
|
* 所属区县
|
*/
|
@TableField("districts")
|
@ApiModelProperty(value = "所属区县")
|
private String districts;
|
/**
|
* 区县编号
|
*/
|
@TableField("districts_code")
|
@ApiModelProperty(value = "区县编号")
|
private String districtsCode;
|
/**
|
* 街道
|
*/
|
@TableField("street")
|
@ApiModelProperty(value = "街道")
|
private String street;
|
/**
|
* 街道ID
|
*/
|
@TableField("street_id")
|
@ApiModelProperty(value = "街道ID")
|
private String streetId;
|
/**
|
* 社区
|
*/
|
@TableField("community")
|
@ApiModelProperty(value = "社区")
|
private String community;
|
/**
|
* 社区ID
|
*/
|
@TableField("community_id")
|
@ApiModelProperty(value = "社区ID")
|
@JsonSerialize(using = ToStringSerializer.class)
|
private Long communityId;
|
/**
|
* 状态(1=正常,2=冻结,3=删除)
|
*/
|
@TableField("status")
|
private Integer status;
|
/**
|
* 添加时间
|
*/
|
@TableField("create_time")
|
private LocalDateTime createTime;
|
|
@TableField(exist = false)
|
@ApiModelProperty(value = "账号层级 2.0.1新增")
|
private List<SystemUserLevel> systemUserLevels;
|
|
@TableField(exist = false)
|
private Integer levelId;
|
|
|
|
|
}
|