mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-28 03:09:24 +08:00
完成系统管理web端功能,实现系统管理服务端接口,实现登录功能
This commit is contained in:
26
src/app/Config.h
Normal file
26
src/app/Config.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
struct DatabaseOption
|
||||
{
|
||||
std::string host;
|
||||
int port;
|
||||
std::string user;
|
||||
std::string passwd;
|
||||
std::string dbname;
|
||||
};
|
||||
|
||||
struct AppOption
|
||||
{
|
||||
DatabaseOption database;
|
||||
};
|
||||
|
||||
class Config
|
||||
{
|
||||
public:
|
||||
static bool init(std::string filename);
|
||||
|
||||
|
||||
static AppOption option;
|
||||
};
|
||||
Reference in New Issue
Block a user