com.github.houbb.current.user.dto.CurrentUserInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of current-user Show documentation
Show all versions of current-user Show documentation
The current-user tool for java.
package com.github.houbb.current.user.dto;
import java.util.List;
/**
* 用户信息
* @author binbin.hou
* @since 0.0.12
*/
public class CurrentUserInfo {
/**
* 用户标识
* @since 0.0.12
*/
private String userId;
/**
* 用户名称
* @since 0.0.12
*/
private String userName;
/**
* 请求地址信息
* @since 0.0.12
*/
private String ip;
/**
* 权限信息
*/
private List privileges;
/**
* 头像信息
* @since 1.1.0
*/
private String avatar;
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public List getPrivileges() {
return privileges;
}
public void setPrivileges(List privileges) {
this.privileges = privileges;
}
public String getIp() {
return ip;
}
public void setIp(String ip) {
this.ip = ip;
}
public String getAvatar() {
return avatar;
}
public void setAvatar(String avatar) {
this.avatar = avatar;
}
@Override
public String toString() {
return "CurrentUserInfo{" +
"userId='" + userId + '\'' +
", userName='" + userName + '\'' +
", ip='" + ip + '\'' +
", privileges=" + privileges +
", avatar='" + avatar + '\'' +
'}';
}
}