| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155 |
- package com.goafanti.common.model;
- import java.util.Date;
- import javax.validation.constraints.Pattern;
- import javax.validation.constraints.Size;
- import com.fasterxml.jackson.annotation.JsonIgnore;
- import com.goafanti.common.constant.ErrorConstants;
- public class User extends BaseModel implements AftUser{
- /**
- *
- */
- private static final long serialVersionUID = 1L;
- private String id;
- /**
- * 用户注册手机号,作为登录依据
- */
- @Size(min = 0, max = 11, message = "{" + ErrorConstants.MOBILE_SIZE_ERROR + "}")
- @Pattern(regexp = "^[0-9]*[1-9][0-9]*$", message = "{"
- + ErrorConstants.MOBILE_PATTERN_ERROR + "}")
- private String mobile;
- /**
- * 密码,md5+salt
- */
-
- private String password;
- /**
- * 用户昵称
- */
- private String nickname;
- /**
- * 用户邮箱
- */
- private String email;
- /**
- * 注册时间
- */
- private Date createTime;
- /**
- * 用户编号
- */
- private Long number;
-
- /**
- * 用户等级
- */
- private Integer lvl;
-
-
- /**
- * 个人账号还是组织账号
- 默认0为个人账号,1为组织账号
- */
- private Integer type;
-
- /**
- * 管理员ID
- */
- private String aid;
- public String getId() {
- return id;
- }
- public void setId(String id) {
- this.id = id;
- }
- public String getMobile() {
- return mobile;
- }
- public void setMobile(String mobile) {
- this.mobile = mobile;
- }
- @JsonIgnore
- public String getPassword() {
- return password;
- }
- public void setPassword(String password) {
- this.password = password;
- }
- public String getNickname() {
- return nickname;
- }
- public void setNickname(String nickname) {
- this.nickname = nickname;
- }
- public String getEmail() {
- return email;
- }
- public void setEmail(String email) {
- this.email = email;
- }
- public Date getCreateTime() {
- return createTime;
- }
- public void setCreateTime(Date createTime) {
- this.createTime = createTime;
- }
- public Long getNumber() {
- return number;
- }
- public void setNumber(Long number) {
- this.number = number;
- }
- public Integer getType() {
- return type;
- }
- public void setType(Integer type) {
- this.type = type;
- }
- public Integer getLvl() {
- return lvl;
- }
- public void setLvl(Integer lvl) {
- this.lvl = lvl;
- }
-
- @Override
- public String getAid() {
- return aid;
- }
- public void setAid(String aid) {
- this.aid = aid;
- }
-
-
-
- }
|