package com.writeoff.module.ocr.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "app.baidu-ocr")
public class BaiduOcrProperties {
    private String apiKey;
    private String secretKey;
    private String tokenUrl;
    private String multipleInvoiceUrl;
    private String idCardUrl;
    private String bankCardUrl;
    private String documentExtractTaskUrl;
    private String documentExtractQueryUrl;
    private int connectTimeoutMs;
    private int readTimeoutMs;
    private long maxBytes;
    private long documentExtractMaxBytes;

    public String getApiKey() {
        return apiKey;
    }

    public void setApiKey(String apiKey) {
        this.apiKey = apiKey;
    }

    public String getSecretKey() {
        return secretKey;
    }

    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey;
    }

    public String getTokenUrl() {
        return tokenUrl;
    }

    public void setTokenUrl(String tokenUrl) {
        this.tokenUrl = tokenUrl;
    }

    public String getMultipleInvoiceUrl() {
        return multipleInvoiceUrl;
    }

    public void setMultipleInvoiceUrl(String multipleInvoiceUrl) {
        this.multipleInvoiceUrl = multipleInvoiceUrl;
    }

    public String getIdCardUrl() {
        return idCardUrl;
    }

    public void setIdCardUrl(String idCardUrl) {
        this.idCardUrl = idCardUrl;
    }

    public String getBankCardUrl() {
        return bankCardUrl;
    }

    public void setBankCardUrl(String bankCardUrl) {
        this.bankCardUrl = bankCardUrl;
    }

    public String getDocumentExtractTaskUrl() {
        return documentExtractTaskUrl;
    }

    public void setDocumentExtractTaskUrl(String documentExtractTaskUrl) {
        this.documentExtractTaskUrl = documentExtractTaskUrl;
    }

    public String getDocumentExtractQueryUrl() {
        return documentExtractQueryUrl;
    }

    public void setDocumentExtractQueryUrl(String documentExtractQueryUrl) {
        this.documentExtractQueryUrl = documentExtractQueryUrl;
    }

    public int getConnectTimeoutMs() {
        return connectTimeoutMs;
    }

    public void setConnectTimeoutMs(int connectTimeoutMs) {
        this.connectTimeoutMs = connectTimeoutMs;
    }

    public int getReadTimeoutMs() {
        return readTimeoutMs;
    }

    public void setReadTimeoutMs(int readTimeoutMs) {
        this.readTimeoutMs = readTimeoutMs;
    }

    public long getMaxBytes() {
        return maxBytes;
    }

    public void setMaxBytes(long maxBytes) {
        this.maxBytes = maxBytes;
    }

    public long getDocumentExtractMaxBytes() {
        return documentExtractMaxBytes;
    }

    public void setDocumentExtractMaxBytes(long documentExtractMaxBytes) {
        this.documentExtractMaxBytes = documentExtractMaxBytes;
    }
}
