| | |
| | |
|
| | | import java.util.Date;
|
| | | import java.util.List;
|
| | | import javax.validation.constraints.Email;
|
| | | import javax.validation.constraints.NotBlank;
|
| | | import javax.validation.constraints.Size;
|
| | | import javax.validation.constraints.*;
|
| | | import org.apache.commons.lang3.builder.ToStringBuilder;
|
| | | import org.apache.commons.lang3.builder.ToStringStyle;
|
| | | import com.fasterxml.jackson.annotation.JsonIgnore;
|
| | | import com.fasterxml.jackson.annotation.JsonProperty;
|
| | | import com.ruoyi.common.xss.Xss;
|
| | | import com.ruoyi.framework.aspectj.lang.annotation.Excel;
|
| | | import com.ruoyi.framework.aspectj.lang.annotation.Excel.ColumnType;
|
| | | import com.ruoyi.framework.aspectj.lang.annotation.Excel.Type;
|
| | |
| | | private static final long serialVersionUID = 1L;
|
| | |
|
| | | /** 用户ID */
|
| | | @Excel(name = "用户序号", cellType = ColumnType.NUMERIC, prompt = "用户编号")
|
| | | @Excel(name = "用户序号", type = Type.EXPORT, cellType = ColumnType.NUMERIC, prompt = "用户编号")
|
| | | private Long userId;
|
| | |
|
| | | /** 部门ID */
|
| | |
| | | private String email;
|
| | |
|
| | | /** 手机号码 */
|
| | | @Excel(name = "手机号码")
|
| | | @Excel(name = "手机号码", cellType = ColumnType.TEXT)
|
| | | private String phonenumber;
|
| | |
|
| | | /** 用户性别 */
|
| | |
| | | /** 密码 */
|
| | | private String password;
|
| | |
|
| | | /** 帐号状态(0正常 1停用) */
|
| | | @Excel(name = "帐号状态", readConverterExp = "0=正常,1=停用")
|
| | | /** 账号状态(0正常 1停用) */
|
| | | @Excel(name = "账号状态", readConverterExp = "0=正常,1=停用")
|
| | | private String status;
|
| | |
|
| | | /** 删除标志(0代表存在 2代表删除) */
|
| | |
| | |
|
| | | /** 角色ID */
|
| | | private Long roleId;
|
| | |
|
| | | /** 租户ID */
|
| | | private Integer tenantId;
|
| | |
|
| | | public SysUser()
|
| | | {
|
| | |
| | | this.deptId = deptId;
|
| | | }
|
| | |
|
| | | @Xss(message = "用户昵称不能包含脚本字符")
|
| | | @Size(min = 0, max = 30, message = "用户昵称长度不能超过30个字符")
|
| | | public String getNickName()
|
| | | {
|
| | |
| | | this.nickName = nickName;
|
| | | }
|
| | |
|
| | | @Xss(message = "用户账号不能包含脚本字符")
|
| | | @NotBlank(message = "用户账号不能为空")
|
| | | @Size(min = 0, max = 30, message = "用户账号长度不能超过30个字符")
|
| | | public String getUserName()
|
| | |
| | | this.avatar = avatar;
|
| | | }
|
| | |
|
| | | @JsonIgnore
|
| | | @JsonProperty
|
| | | public String getPassword()
|
| | | {
|
| | | return password;
|
| | |
| | | this.roleId = roleId;
|
| | | }
|
| | |
|
| | | public Integer getTenantId() {
|
| | | return tenantId;
|
| | | }
|
| | |
|
| | | public void setTenantId(Integer tenantId) {
|
| | | this.tenantId = tenantId;
|
| | | }
|
| | |
|
| | | @Override
|
| | | public String toString() {
|
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|