lyh
3 天以前 2ab86210fb27787cb1be8976286b9b827f90997f
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
package com.lxzn.auth.security;
 
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;
 
import java.io.Serializable;
import java.util.Collection;
import java.util.List;
 
@ToString
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public class UserJwt extends User {
 
    private String userId;
    private String userPic;
    private Integer userType;
    private String nickname;
    private List<String> menus;
 
    public UserJwt(String username, String password, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, authorities);
    }
}