| 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
 | | package com.mzl.flower.entity.permission; |  |   |  | import org.springframework.security.core.GrantedAuthority; |  | import org.springframework.security.core.userdetails.User; |  |   |  | import java.util.Collection; |  |   |  | public class AuthUser extends User { |  |   |  |     private String id; |  |   |  |     public AuthUser(String id, |  |                     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.id = id; |  |     } |  |   |  |     public String getId() { |  |         return id; |  |     } |  |   |  |     public void setId(String id) { |  |         this.id = id; |  |     } |  | } | 
 |