package com.jeequan.jeepay.core.model;

import lombok.Data;

import java.io.Serializable;

/**
 *
 * OCR配置参数
 * @author xiaoyu
 * @date 2022/1/11 9:54
 */
@Data
public class DBOCRConfig implements Serializable {

    // 阿里云
    public static String OCR_ALI = "ali";
    // 腾讯云
    public static String OCR_TENCENT = "tencent";

    // 百度
    public static String OCR_BAIDU = "baidu";

    // OCR识别使用类型 1-腾讯OCR 2-阿里OCR 3-百度OCR
    public static byte OCR_TYPE_TENCENT = 1;
    public static byte OCR_TYPE_ALI = 2;
    public static byte OCR_TYPE_BAIDU = 3;

    // 调用接口类型
    public static String OCR_TYPE_ID_CARD = "idCard";
    public static String OCR_TYPE_BANK_CARD = "bankCard";
    public static String OCR_TYPE_LICENSE = "license";

    /** OCR识别使用状态 0-关闭 1-开启 **/
    private byte ocrState;

    /** OCR识别使用类型 1-腾讯OCR 2-阿里OCR **/
    private byte ocrType;

    /** 腾讯OCR参数 **/
    private String tencentSecretId;
    private String tencentSecretKey;

    /** 阿里OCR参数 **/
    private String aliAccessKeyId;
    private String aliAccessKeySecret;


    /** 百度云 OCR **/
    private String baiduApiKey;
    private String baiduSecretKey;

}
