package com.gxwebsoft.common.system.result;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * 租户选项（多租户登录时返回，供前端展示选择列表）
 *
 * @author WebSoft
 */
@Data
@Schema(description = "租户选项")
public class TenantOption implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "租户ID")
    private Integer tenantId;

    @Schema(description = "租户名称")
    private String tenantName;

    @Schema(description = "用户ID")
    private Integer userId;

    @Schema(description = "用户名")
    private String username;

    @Schema(description = "昵称")
    private String nickname;

    @Schema(description = "角色名称")
    private String roleName;

    @Schema(description = "头像")
    private String avatar;

    public TenantOption() {
    }

    public TenantOption(Integer tenantId, String tenantName, Integer userId,
                        String username, String nickname, String roleName, String avatar) {
        this.tenantId = tenantId;
        this.tenantName = tenantName;
        this.userId = userId;
        this.username = username;
        this.nickname = nickname;
        this.roleName = roleName;
        this.avatar = avatar;
    }
}
