All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.houbb.current.user.dto.CurrentUserInfo Maven / Gradle / Ivy

There is a newer version: 1.3.0
Show newest version
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 + '\'' +
                '}';
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy