使用boost pfr 遍历结构体

This commit is contained in:
2026-06-26 09:36:14 +08:00
parent 26b5c8a54d
commit 472e609f13
17 changed files with 1322 additions and 1622 deletions
+2 -2
View File
@@ -66,10 +66,10 @@ void DSP_Config::server(Global *g) {
#endif
set_fft_point_number(this->fft_point_number);
g->save();
res->setBody(warp(to_json()).to_json_string());
res->setBody(warp(to_base_json()).to_json_string());
});
svr.Post(api + "get_dsp_config", [this](HTTP_Param) {
res->setBody(warp(to_json()).to_json_string());
res->setBody(warp(to_base_json()).to_json_string());
});
drogon::app().registerHandler(