CSON使用实例:定义数据模型
2024-01-01CSON使用实例声明结构体: /** 项目结构体 */struct project{ int id; char *name;};/** 仓库结构体 */struct hub{ int id; char *user; struct project *cson;}; 定义数据模型: 对每一个需要使用cson的结构体,都需要定义相对应的数据模型 /** 项目结构体数据模型 */CsonModel projectModel[] ={ CSON_MODEL_OBJ(struct project), CSO