1 Star 0 Fork 1

powerx / FuckJSON

forked from Asciphx / FuckJSON 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
module.hpp 797 Bytes
一键复制 编辑 原始数据 按行查看 历史
asciphx 提交于 2022-01-26 23:36 . once
#include "src/macros.hpp"
static int RES_INIT = orm::InitializationOrm();
//模块化,以及循环依赖,是难点(Modularity and circular dependency are the difficulties)
using namespace std; using namespace orm;
struct Type;
struct Tab {
uint32_t id;
bool ok;
text<15> name;
tm date;
vector<Type> types;
Tab(uint32_t a = 0, bool b = false, const char* c = "", tm d = now(), vector<Type> e = {}) :
id(a), ok(b), name(c), date(d), types(e) {}
const static char* $[];
};
FUCKJSON(Tab, id, ok, name, date, types)
struct Type {
uint8_t id;
text<10> language;
double bigBlob;
vector<Tab> tabs;
Type(uint8_t a = 0, const char* b = "", double c = 0, vector<Tab> d = {}) :
id(a), language(b), bigBlob(c), tabs(d) {}
const static char* $[];
};
FUCKJSON(Type, id, language, bigBlob, tabs)
C++
1
https://gitee.com/powerx/FuckJSON.git
git@gitee.com:powerx/FuckJSON.git
powerx
FuckJSON
FuckJSON
master

搜索帮助