package cn.reghao.tnb.user.api.dto;

import cn.reghao.tnb.auth.api.dto.AccountInfo;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

/**
 * @author reghao
 * @date 2022-07-08 18:10:23
 */
@NoArgsConstructor
@Setter
@Getter
public class UserInfo implements Serializable {
    private static final long serialVersionUID = 1L;

    private String userId;
    private String screenName;
    private String avatarUrl;
    private Integer gender;
    private String signature;
    private Integer following;
    private Integer follower;
    private Boolean vip;
    private Long biliUserId;

    public UserInfo(AccountInfo accountInfo, String userIdStr, int gender, String signature, int following, int follower, boolean vip) {
        this.userId = userIdStr;
        this.screenName = accountInfo.getScreenName();
        this.avatarUrl = accountInfo.getAvatarUrl();
        this.gender = gender;
        this.signature = signature;
        this.following = following;
        this.follower = follower;
        this.vip = vip;
    }
}
