package com.ruoyi.system.config;
|
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
import org.springframework.stereotype.Component;
|
|
/**
|
* 腾讯云OCR配置类
|
* 用于配置腾讯云OCR服务的相关参数
|
*/
|
@Component
|
@ConfigurationProperties(prefix = "tencent.ocr")
|
public class TencentOCRConfig {
|
|
/**
|
* 腾讯云SecretId
|
*/
|
private String secretId;
|
|
/**
|
* 腾讯云SecretKey
|
*/
|
private String secretKey;
|
|
/**
|
* 腾讯云OCR服务端点
|
*/
|
private String endpoint = "ocr.tencentcloudapi.com";
|
|
public String getSecretId() {
|
return secretId;
|
}
|
|
public void setSecretId(String secretId) {
|
this.secretId = secretId;
|
}
|
|
public String getSecretKey() {
|
return secretKey;
|
}
|
|
public void setSecretKey(String secretKey) {
|
this.secretKey = secretKey;
|
}
|
|
public String getEndpoint() {
|
return endpoint;
|
}
|
|
public void setEndpoint(String endpoint) {
|
this.endpoint = endpoint;
|
}
|
}
|