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; } }