yantian yue
2023-10-18 465d5c4666546e7e54f0e3c34c7bcce5830aaa6a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package cn.stylefeng.guns.base.auth.model;
 
import lombok.AllArgsConstructor;
import lombok.Data;
import org.springframework.security.core.GrantedAuthority;
 
@Data
@AllArgsConstructor
public class MyRole implements GrantedAuthority {
 
    private String roleName;
 
    @Override
    public String getAuthority() {
        return roleName;
    }
 
}