GrpcPrint/PrintS/Config/bean/FavoriteCfg.h

22 lines
407 B
C
Raw Normal View History

2024-05-30 17:25:23 +08:00
#pragma once
2024-03-19 17:45:12 +08:00
#include <map>
#include <string>
#include <vector>
2024-05-30 17:25:23 +08:00
#include "../Controller/Base.h"
2024-03-19 17:45:12 +08:00
2024-05-30 17:25:23 +08:00
class FavoriteCfg :public Base
2024-03-19 17:45:12 +08:00
{
public:
FavoriteCfg();
~FavoriteCfg();
void GetUpdateSql(std::vector<std::string>& ups);
void Add(std::string name, std::string value);
2024-05-30 17:25:23 +08:00
void UpdateSub(const ReadData& rd);
2024-03-19 17:45:12 +08:00
public:
static std::string CONFIG_NAME;
std::map<std::string, std::string> mFavoriteMap;
};