package com.hotwj.platform.integration.ocr.baidu.domain.vo;

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

/**
 * 身份证识别结果
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class IdCardVo extends BaiduOcrBaseVo {

    // 正面 (front)
    @Schema(description = "姓名")
    private String name;

    @Schema(description = "公民身份号码")
    private String idNumber;

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

    @Schema(description = "性别")
    private String gender;

    @Schema(description = "民族")
    private String ethnicity;

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

    // 反面 (back)
    @Schema(description = "失效日期")
    private String expiryDate;

    @Schema(description = "签发日期")
    private String issueDate;

    @Schema(description = "签发机关")
    private String authority;
}
