refactor.读取资源接口解耦

This commit is contained in:
MistEO
2022-03-04 23:51:08 +08:00
parent b68fa59076
commit 1fdb131f7b
19 changed files with 334 additions and 285 deletions

View File

@@ -2,8 +2,12 @@
#include <meojson/json.hpp>
#include "Logger.hpp"
bool asst::InfrastConfiger::parse(const json::value& json)
{
LogTraceFunction;
for (const json::value& facility : json.at("facility").as_array()) {
std::string facility_name = facility.as_string();
json::value facility_json = json.at(facility_name);