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

import com.github.microservice.auth.security.type.AuthType;
import com.zhongshu.card.client.model.base.SuperModel;
import com.zhongshu.card.client.model.org.DepartmentModel;
import com.zhongshu.card.client.model.org.OrganizationMiniModel;
import com.zhongshu.card.client.model.org.UserCountSimpleModel;
import com.zhongshu.card.client.model.org.role.RoleModel;
import com.zhongshu.card.client.model.school.DictInfoSimpleModel;
import com.zhongshu.card.client.openApi.base.SuperAPIModel;
import com.zhongshu.card.client.type.CertificateType;
import com.zhongshu.card.client.type.OrganizationUserType;
import com.zhongshu.card.client.type.Sex;
import com.zhongshu.card.client.type.UserState;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.ObjectUtils;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

/**
 * 机构用户详情
 *
 * @author TRX
 * @date 2024/6/6
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrganizationUserOpenApiModel extends SuperAPIModel {

    @Schema(description = "工号/学号")
    private String code;

    @Schema(description = "用户ID（由鉴权中心颁发）")
    private String userId;

    @Schema(description = "用户手机号")
    private String phone;

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

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

    @Schema(description = "性别")
    private Sex sex;

    //-------------------------------机构信息 start ---------------
    @Schema(description = "机构名称")
    private String orgName;

    @Schema(description = "机构类型")
    private AuthType authType;

    @Schema(description = "所属机构oid")
    private String orgOid;

    @Schema(description = "logo")
    private String logo;

}
