yz
2021-03-07 9ec124ecb9239091d537c71fe907f9a1bb3e135f
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
package cc.mrbird.febs.common.core.entity;
 
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;
 
import java.util.Collection;
import java.util.Date;
 
/**
 * @author MrBird
 */
@Data
@SuppressWarnings("all")
@EqualsAndHashCode(callSuper = true)
public class FebsAuthUser extends User {
 
    private static final long serialVersionUID = -6411066541689297219L;
 
    private Long userId;
 
    private String avatar;
 
    private String email;
 
    private String mobile;
 
    private String sex;
 
    private Long deptId;
 
    private String deptName;
 
    private String roleId;
 
    private String roleName;
 
    private Date lastLoginTime;
 
    private String description;
 
    private String status;
 
    private String deptIds;
 
    public FebsAuthUser(String username, String password, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, authorities);
    }
 
    public FebsAuthUser(String username, String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, enabled, accountNonExpired, credentialsNonExpired, accountNonLocked, authorities);
    }
}