package com.gxwebsoft.common.system.param;

import com.baomidou.mybatisplus.annotation.TableField;
import com.gxwebsoft.common.core.annotation.QueryField;
import com.gxwebsoft.common.core.annotation.QueryType;
import com.gxwebsoft.common.core.web.BaseParam;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Set;

/**
 * 实名认证查询参数
 *
 * @author 科技小王子
 * @since 2025-05-29 23:01:04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "UserVerifyParam对象", description = "实名认证查询参数")
public class UserVerifyParam extends BaseParam {
    private static final long serialVersionUID = 1L;

    @Schema(description = "自增ID")
    @QueryField(type = QueryType.EQ)
    private Integer id;

    @Schema(description = "用户ID")
    @QueryField(type = QueryType.EQ)
    private Integer userId;

    @Schema(description = "认证类型, 0个人 1企业")
    @QueryField(type = QueryType.EQ)
    private Integer type;

    @Schema(description = "主体名称")
    @QueryField(type = QueryType.LIKE)
    private String name;

    @Schema(description = "真实姓名")
    private String realName;

    @Schema(description = "证件号码")
    private String idCard;

    @Schema(description = "出生日期")
    private String birthday;

    @Schema(description = "正面")
    private String sfz1;

    @Schema(description = "反面")
    private String sfz2;

    @Schema(description = "营业执照号码")
    @QueryField(type = QueryType.EQ)
    private String zzCode;

    @Schema(description = "管理员ID")
    @QueryField(type = QueryType.EQ)
    private Integer adminId;

    @Schema(description = "机构ID")
    @QueryField(type = QueryType.EQ)
    private Integer organizationId;

    @Schema(description = "机构id合集")
    @TableField(exist = false)
    private Set<Integer> organizationIds;

    @Schema(description = "备注")
    private String comments;

    @Schema(description = "状态, 0在线, 1离线")
    @QueryField(type = QueryType.EQ)
    private Integer status;

    @Schema(description = "是否删除, 0否, 1是")
    @QueryField(type = QueryType.EQ)
    private Integer deleted;

}
