Files
baidu_fanyi/bf.util.h

23 lines
488 B
C
Raw Normal View History

2026-03-10 11:51:02 +08:00
#ifndef BF_UTIL_H
#define BF_UTIL_H
#include <spdlog/sinks/stdout_color_sinks.h>
#include <spdlog/spdlog.h>
#include <string>
extern std::shared_ptr<spdlog::logger> gLogger;
class BF_Util
{
public:
BF_Util() = default;
public:
static void initLogger();
static void setLogLevel(spdlog::level::level_enum level);
static std::string MD5(const std::string& data);
static std::string RandomStrNum();
static std::string urlEncode(const std::string& data);
};
#endif