| | |
| | | package com.moral.entity;
|
| | |
|
| | | import java.util.Arrays;
|
| | | import java.util.Date;
|
| | | import java.util.List;
|
| | |
|
| | | import javax.persistence.Id;
|
| | | import javax.persistence.Transient;
|
| | |
|
| | | import lombok.Data;
|
| | |
|
| | | @Data
|
| | | public class Account {
|
| | | private Integer id;
|
| | | /**
|
| | | * This field was generated by MyBatis Generator. This field corresponds to the database column account.id
|
| | | * @mbggenerated Thu Dec 07 16:17:21 CST 2017
|
| | | */
|
| | | @Id
|
| | | private Integer id;
|
| | |
|
| | | /**
|
| | | * This field was generated by MyBatis Generator. This field corresponds to the database column account.account_name
|
| | | * @mbggenerated Thu Dec 07 16:17:21 CST 2017
|
| | | */
|
| | | private String accountName;
|
| | |
|
| | | /**
|
| | | * This field was generated by MyBatis Generator. This field corresponds to the database column account.password
|
| | | * @mbggenerated Thu Dec 07 16:17:21 CST 2017
|
| | | */
|
| | | private String password;
|
| | |
|
| | | /**
|
| | | * This field was generated by MyBatis Generator. This field corresponds to the database column account.organization_id
|
| | | * @mbggenerated Thu Dec 07 16:17:21 CST 2017
|
| | | */
|
| | | private Integer organizationId;
|
| | |
|
| | | /**
|
| | | * This field was generated by MyBatis Generator. This field corresponds to the database column account.email
|
| | | * @mbggenerated Thu Dec 07 16:17:21 CST 2017
|
| | | */
|
| | | private String email;
|
| | |
|
| | | /**
|
| | | * This field was generated by MyBatis Generator. This field corresponds to the database column account.mobile
|
| | | * @mbggenerated Thu Dec 07 16:17:21 CST 2017
|
| | | */
|
| | | private String mobile;
|
| | |
|
| | | /**
|
| | | * This field was generated by MyBatis Generator. This field corresponds to the database column account.weixin
|
| | | * @mbggenerated Thu Dec 07 16:17:21 CST 2017
|
| | | */
|
| | | private String weixin;
|
| | |
|
| | | /**
|
| | | * This field was generated by MyBatis Generator. This field corresponds to the database column account.is_delete
|
| | | * @mbggenerated Thu Dec 07 16:17:21 CST 2017
|
| | | */
|
| | | private String isDelete;
|
| | |
|
| | | /**
|
| | | * This field was generated by MyBatis Generator. This field corresponds to the database column account.create_time
|
| | | * @mbggenerated Thu Dec 07 16:17:21 CST 2017
|
| | | */
|
| | | private Date createTime;
|
| | |
|
| | | /**
|
| | | * This field was generated by MyBatis Generator. This field corresponds to the database column account.expire_time
|
| | | * @mbggenerated Thu Dec 07 16:17:21 CST 2017
|
| | | */
|
| | | private Date expireTime;
|
| | |
|
| | | public Integer getId() {
|
| | | return id;
|
| | | private String userName;
|
| | | @Transient
|
| | | private JwtTokenVersion jwtTokenVersion;
|
| | | @Transient
|
| | | private List<Role> Roles;
|
| | | // TODO 临时角色
|
| | | public List<Role> getRoles(){
|
| | | Role role = new Role();
|
| | | role.setName("temp");
|
| | | return Arrays.asList(role);
|
| | | }
|
| | |
|
| | | public void setId(Integer id) {
|
| | | this.id = id;
|
| | | }
|
| | |
|
| | | public String getAccountName() {
|
| | | return accountName;
|
| | | }
|
| | |
|
| | | public void setAccountName(String accountName) {
|
| | | this.accountName = accountName;
|
| | | }
|
| | |
|
| | | public String getPassword() {
|
| | | return password;
|
| | | }
|
| | |
|
| | | public void setPassword(String password) {
|
| | | this.password = password;
|
| | | }
|
| | |
|
| | | public Integer getOrganizationId() {
|
| | | return organizationId;
|
| | | }
|
| | |
|
| | | public void setOrganizationId(Integer organizationId) {
|
| | | this.organizationId = organizationId;
|
| | | }
|
| | |
|
| | | public String getEmail() {
|
| | | return email;
|
| | | }
|
| | |
|
| | | public void setEmail(String email) {
|
| | | this.email = email;
|
| | | }
|
| | |
|
| | | public String getMobile() {
|
| | | return mobile;
|
| | | }
|
| | |
|
| | | public void setMobile(String mobile) {
|
| | | this.mobile = mobile;
|
| | | }
|
| | |
|
| | | public String getWeixin() {
|
| | | return weixin;
|
| | | }
|
| | |
|
| | | public void setWeixin(String weixin) {
|
| | | this.weixin = weixin;
|
| | | }
|
| | |
|
| | | public String getIsDelete() {
|
| | | return isDelete;
|
| | | }
|
| | |
|
| | | public void setIsDelete(String isDelete) {
|
| | | this.isDelete = isDelete;
|
| | | }
|
| | |
|
| | | public Date getCreateTime() {
|
| | | return createTime;
|
| | | }
|
| | |
|
| | | public void setCreateTime(Date createTime) {
|
| | | this.createTime = createTime;
|
| | | }
|
| | |
|
| | | public Date getExpireTime() {
|
| | | return expireTime;
|
| | | }
|
| | |
|
| | | public void setExpireTime(Date expireTime) {
|
| | | this.expireTime = expireTime;
|
| | | }
|
| | | @Transient
|
| | | private Organization organization;
|
| | |
|
| | | } |