package com.yeshi.fanli.entity.common;
|
|
import java.io.Serializable;
|
|
import javax.persistence.Column;
|
import javax.persistence.Entity;
|
import javax.persistence.GeneratedValue;
|
import javax.persistence.GenerationType;
|
import javax.persistence.Id;
|
import javax.persistence.Table;
|
|
import com.google.gson.annotations.Expose;
|
|
@Entity
|
@Table(name = "`yeshi_ec_adminuser`")
|
@org.yeshi.utils.mybatis.Table("yeshi_ec_adminuser")
|
public class AdminUser implements Serializable{
|
/**
|
*
|
*/
|
private static final long serialVersionUID = 1L;
|
|
@Id
|
@GeneratedValue(strategy = GenerationType.AUTO)
|
@org.yeshi.utils.mybatis.Column(name = "id")
|
@Column(name = "id")
|
private Long id;
|
|
@org.yeshi.utils.mybatis.Column(name = "name")
|
@Column(name = "name", length = 32)
|
@Expose
|
private String name;
|
|
@org.yeshi.utils.mybatis.Column(name = "account")
|
@Column(name = "account", length = 50)
|
private String account;
|
|
@org.yeshi.utils.mybatis.Column(name = "pwd")
|
@Column(name = "pwd", length = 50)
|
private String pwd;
|
|
@org.yeshi.utils.mybatis.Column(name = "createtime")
|
@Column(name = "createtime", length = 16)
|
private String createtime;
|
|
@org.yeshi.utils.mybatis.Column(name = "authority")
|
@Column(name = "authority", length = 1)
|
private Integer authority;// 0-超级权限 1-普�?权限
|
|
// 邮箱
|
@org.yeshi.utils.mybatis.Column(name = "email")
|
@Column(name = "email", length = 30)
|
private String email;
|
|
|
public AdminUser(){}
|
|
public AdminUser(Long id){
|
this.id=id;
|
}
|
|
|
|
public String getEmail() {
|
return email;
|
}
|
|
public void setEmail(String email) {
|
this.email = email;
|
}
|
|
public int getAuthority() {
|
return authority;
|
}
|
|
public void setAuthority(int authority) {
|
this.authority = authority;
|
}
|
|
public Long getId() {
|
return id;
|
}
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
public String getName() {
|
return name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
public String getAccount() {
|
return account;
|
}
|
|
public void setAccount(String account) {
|
this.account = account;
|
}
|
|
public String getPwd() {
|
return pwd;
|
}
|
|
public void setPwd(String pwd) {
|
this.pwd = pwd;
|
}
|
|
public String getCreatetime() {
|
return createtime;
|
}
|
|
public void setCreatetime(String createtime) {
|
this.createtime = createtime;
|
}
|
}
|