RuoYi
2020-06-10 3603582c88672dbb09b00088f7b23ab2b84257df
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
package com.ruoyi.common.security.domain;
 
import java.util.Collection;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;
 
/**
 * 登录用户身份权限
 * 
 * @author ruoyi
 */
public class LoginUser extends User
{
    private static final long serialVersionUID = 1L;
 
    /**
     * 用户ID
     */
    private Long userId;
 
    public LoginUser(Long userId, String username, String password, boolean enabled, boolean accountNonExpired,
            boolean credentialsNonExpired, boolean accountNonLocked, Collection<? extends GrantedAuthority> authorities)
    {
        super(username, password, enabled, accountNonExpired, credentialsNonExpired, accountNonLocked, authorities);
        this.userId = userId;
    }
 
    public Long getUserId()
    {
        return userId;
    }
 
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }
}