Files
baidu_fanyi/bf.config.h
2026-03-10 14:32:11 +08:00

35 lines
533 B
C++

#ifndef BF_CONFIG_H
#define BF_CONFIG_H
#include <string>
enum BF_Type {
BFT_COMMON = 0,
BFT_AI
};
struct XlsxTask {
int startRow;
int startCol;
int endRow;
int endCol;
std::string from;
std::string to;
};
class BF_Config
{
public:
BF_Config() = default;
bool parseConfig(const std::string& file);
public:
std::string baseUrl;
std::string appId;
std::string appKey;
std::string appSecret;
int interval = 1000;
BF_Type type = BFT_COMMON;
};
#endif // BF_CONFIG_H