kaiyu
2020-12-15 3a46aae0a8e9e4bd3cb8dcd1185a69a74668995b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
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 {
    /**
     * 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;
 
    private String userName;
    @Transient
    private JwtTokenVersion jwtTokenVersion;
    @Transient
    private List<Role> Roles;
    // TODO 临时角色
    public List<Role> getRoles(){
        Role role = new Role();
        role.setRoleName("temp");
        return Arrays.asList(role);
    }
    @Transient
    private Organization organization;
 
}