提交 | 用户 | 时间 | ||
1ac2bc | 1 | package cn.stylefeng.guns.base.auth.model; |
懒 | 2 | |
3 | import lombok.AllArgsConstructor; | |
4 | import lombok.Data; | |
5 | import org.springframework.security.core.GrantedAuthority; | |
6 | ||
7 | @Data | |
8 | @AllArgsConstructor | |
9 | public class MyRole implements GrantedAuthority { | |
10 | ||
11 | private String roleName; | |
12 | ||
13 | @Override | |
14 | public String getAuthority() { | |
15 | return roleName; | |
16 | } | |
17 | ||
18 | } |