基本通信测试通过。
This commit is contained in:
23
bf.util.h
Normal file
23
bf.util.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user