package com.ytpm.agent.view;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.security.core.GrantedAuthority;

import java.util.Collection;
import java.util.Collections;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("当前登录用户信息")
public class AgentUserInfo {
    @ApiModelProperty("用户ID")
    private String userId;
    @ApiModelProperty("用户昵称")
    private String nickName;
    @ApiModelProperty("头像")
    private String headImage;
    @ApiModelProperty("登录用户名")
    private String loginName;
    @ApiModelProperty("手机号")
    private String phone;
    @ApiModelProperty("最新登录时间")
    private Date lastLoginTime;
    @ApiModelProperty("最新登录IP")
    private String lastLoginIp;

    public Collection<? extends GrantedAuthority> getAuthorities() {
        return Collections.emptyList();
    }
}
