package org.springblade.thirdparty.ocr.pojo.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

/**
 *  ocr 证件识别参数
 * @author bfhuange
 * @date 2024/11/6
 */
@NoArgsConstructor
@Data
public class OCRCardBankDetRecDTO implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    /**
     *  图像本地路径或者远程服务器地址，必填
     */
    @JsonProperty("img_path")
    private String imgPath;
    /**
     *  图像内容类型，位置为"", ["", "BankCard-Main","BankCard-Side", "IDCard-Main", "IDCard-Side"] 其他依次对应: 银⾏卡-正⾯、银⾏卡-背⾯、身份证-信息⻚、身份证-国徽⻚，非必填
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("data_type")
    private String dataType;

    public OCRCardBankDetRecDTO(String imgPath) {
        this.imgPath = imgPath;
    }
}
