| | |
| | | package com.xinquan.system.api.domain; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.xinquan.common.core.annotation.Excel; |
| | | import com.xinquan.common.core.annotation.Excel.ColumnType; |
| | | import com.xinquan.common.core.annotation.Excel.Type; |
| | |
| | | import javax.validation.constraints.Email; |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.Size; |
| | | |
| | | import lombok.Data; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | @Data |
| | | public class SysUser extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** 用户ID */ |
| | | @Excel(name = "用户序号", cellType = ColumnType.NUMERIC, prompt = "用户编号") |
| | | @TableField("user_id") |
| | | @TableId("user_id") |
| | | private Long userId; |
| | | |
| | | /** 部门ID */ |
| | | @Excel(name = "部门编号", type = Type.IMPORT) |
| | | @Excel(name = "部门id", type = Type.IMPORT) |
| | | @TableField("dept_id") |
| | | private Long deptId; |
| | | |
| | | /** 用户账号 */ |
| | | @Excel(name = "登录名称") |
| | | @Excel(name = "登录名称/登录账号") |
| | | @TableField("user_name") |
| | | private String userName; |
| | | |
| | | /** 用户昵称 */ |
| | | @Excel(name = "用户名称") |
| | | @NotBlank(message = "姓名不能为空") |
| | | @Excel(name = "用户名称(姓名)") |
| | | @TableField("nick_name") |
| | | private String nickName; |
| | | @Excel(name = "操作人") |
| | | @TableField("handleName") |
| | | private String handleName; |
| | | |
| | | /** 用户邮箱 */ |
| | | @Excel(name = "用户邮箱") |
| | |
| | | |
| | | /** 手机号码 */ |
| | | @Excel(name = "手机号码") |
| | | @NotBlank(message = "请输入账号") |
| | | private String phonenumber; |
| | | |
| | | /** 用户性别 */ |
| | |
| | | private String avatar; |
| | | |
| | | /** 密码 */ |
| | | @NotBlank(message = "密码不能为空") |
| | | private String password; |
| | | |
| | | /** 帐号状态(0正常 1停用) */ |
| | |
| | | |
| | | /** 角色组 */ |
| | | @TableField(exist = false) |
| | | @ApiModelProperty(value = "角色id数组") |
| | | private Long[] roleIds; |
| | | |
| | | /** 岗位组 */ |
| | | @TableField(exist = false) |
| | | private Long[] postIds; |
| | | @ApiModelProperty(value = "部门id数组") |
| | | private List<Long> deptIds; |
| | | |
| | | /** 角色ID */ |
| | | @TableField(exist = false) |
| | | private Long roleId; |
| | | |
| | | |
| | | @ApiModelProperty(value = "备注") |
| | | private String remark; |
| | | |
| | | @ApiModelProperty(value = "用户类型 00:管理后台用户 01:APP用户") |
| | | @TableField("user_type") |
| | | private String userType; |
| | | @ApiModelProperty(value = "禁用原因") |
| | | @TableField("reason") |
| | | private String reason; |
| | | @ApiModelProperty(value = "禁用时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @TableField("disable_time") |
| | | private LocalDateTime disableTime; |
| | | |
| | | public String getUserType() { |
| | | return userType; |
| | |
| | | this.roleIds = roleIds; |
| | | } |
| | | |
| | | public Long[] getPostIds() |
| | | { |
| | | return postIds; |
| | | } |
| | | |
| | | public void setPostIds(Long[] postIds) |
| | | { |
| | | this.postIds = postIds; |
| | | } |
| | | |
| | | public Long getRoleId() |
| | | { |