package com.zhongshu.card.client.model.login;

import com.zhongshu.card.client.model.org.OrganizationSimpleModel;
import com.zhongshu.card.client.model.org.UserCountModel;
import com.zhongshu.card.client.model.org.UserJoinBusOrgModel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;
import java.util.Set;

/**
 * 通用登录返回的数据模型
 *
 * @author TRX
 * @date 2024/9/24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class LoginBusModel {

    @Schema(description = "token")
    private String access_token;

    private String token_type;

    @Schema(description = "刷新token的token")
    private String refresh_token;

    private Integer expires_in;

    private String scope;

    @Schema(description = "用户基本信息")
    private UserCountModel userInfo;

    @Schema(description = "加入的商户列表")
    private List<UserJoinBusOrgModel> busList = new ArrayList<>();
}
