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

import com.github.microservice.auth.security.type.AuthType;
import com.zhongshu.card.client.model.base.SuperParam;
import com.zhongshu.card.client.type.OrganizationState;
import com.zhongshu.card.client.type.ProjectType;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

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

/**
 * 保存机构信息的模型
 *
 * @author TRX
 * @date 2024/5/31
 */
@Data
public class OrgSaveParam extends SuperParam {

    @Schema(description = "机构名称", required = true)
    @NotEmpty(message = "name不能为空")
    private String name;

    @Schema(description = "编码、项目ID")
    private String code;

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

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

    @Schema(description = "统一社会信用代码")
    private String orgCode;

    @Schema(description = " 行政区划编码 21,2104,210403")
    private String adminDivisionItemCode;

    @Schema(description = "地址")
    private String address;

    @Schema(description = "经度")
    private String mapLon;

    @Schema(description = "纬度")
    private String mapLat;

    @Schema(description = "联系人-用来初始管理员")
    private String contactName;

    @Schema(description = "联系人电话")
    private String contactPhone;

    @NotNull
    @Schema(description = "机构状态")
    private OrganizationState state = OrganizationState.Normal;

}
