templates.common.LoginUserVo.ftl Maven / Gradle / Ivy
package ${packageName}.common.vo;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Map;
/***
* 登录用户身份权限
*
* @author Co.
* @date: 2022/10/14 19:42
* @return
*/
@Data
public class LoginUserVo implements UserDetails {
private static final long serialVersionUID = 1L;
/**
* 用户唯一标识
*/
private String token;
/**
* 权限列表
*/
private List