feitui-taxonomy表的schema
{
"bsonType": "object",
"required": ["name", "taxonomy"],
"permission": {
"read": true,
"create": false,
"update": false,
"delete": false
},
"properties": {
"_id": {
"description": "ID,系统自动生成"
},
"name": {
"bsonType": "string",
"description": "类别名称",
"label": "名称",
"trim": "both"
},
"taxonomy": {
"bsonType": "string",
"description": "category、tag、media_category等",
"label": "分类类型",
"trim": "both"
},
"description": {
"bsonType": "string",
"description": "类别描述",
"label": "描述",
"trim": "both"
},
"icon": {
"bsonType": "string",
"description": "类别图标地址",
"label": "图标地址",
"pattern": "^(http://|https://|/|./|@/)\S",
"trim": "both"
},
"sort": {
"bsonType": "int",
"description": "类别显示顺序",
"label": "排序"
},
"count": {
"bsonType": "int",
"description": "该类别下的目标数量"
},
"parent": {
"bsonType": "string",
"title": "父节点",
"description": "父节点ID",
"foreignKey": "feitui-taxonomy._id"
},
"level": {
"bsonType": "int",
"title": "层级",
"defaultValue": 0
},
"path": {
"bsonType": "string",
"description": "树形排序使用"
},
"create_date": {
"bsonType": "timestamp",
"description": "创建时间",
"forceDefaultValue": {
"$env": "now"
}
}
}
}
数据:共28条记录
{"_id":"54ad1eea61e664da0826a43a088d008e","create_date":1.63910358641E+12,"description":"政策法规","level":1.0,"name":"法律法规","path":"/0003","sort":3.0,"parent":"root","taxonomy":"post-category","icon":"https://vkceyugu.cdn.bspapp.com/VKCEYUGU-f8daf247-c554-447e-b7f7-983ea44df32c/5c4af403-5675-4ff2-a921-f8bdcb369d27.png"}
{"_id":"54ad1eea61e664da0826a43b04173a93","name":"tabbar","taxonomy":"media-category"}
{"_id":"54ad1eea61e664da0826a43c16298773","name":"轮播图","taxonomy":"media-category"}
{"_id":"54ad1eea61e664da0826a43d3764b820","name":"新闻图片","taxonomy":"media-category"}
{"_id":"54ad1eea61e664da0826a43e135c3fc2","icon":"https://vkceyugu.cdn.bspapp.com/VKCEYUGU-f8daf247-c554-447e-b7f7-983ea44df32c/b7248bf7-fd9e-45f9-abe8-7b25d5d05c38.png","level":1.0,"name":"案例","path":"/0004","taxonomy":"post-category","create_date":1.640918935813E+12,"description":"案例","parent":"root","sort":4.0}
{"_id":"54ad1eea61e664da0826a4403b0a5343","icon":"https://vkceyugu.cdn.bspapp.com/VKCEYUGU-f8daf247-c554-447e-b7f7-983ea44df32c/2233e606-5d7c-47d3-802e-09c00045ef5f.png","name":"热点","parent":"root","path":"/0005","sort":5.0,"taxonomy":"post-category","create_date":1.64091894807E+12,"description":"","level":1.0}
{"_id":"54ad1eea61e664da0826a4426a391bef","name":"资讯","parent":"root","sort":2.0,"taxonomy":"post-category","description":"城管相关新闻、资讯","level":1.0,"path":"/0002","create_date":1.641264384676E+12,"icon":"https://vkceyugu.cdn.bspapp.com/VKCEYUGU-f8daf247-c554-447e-b7f7-983ea44df32c/876a8a7c-48b5-44a9-8518-de8e18881b27.png"}
{"_id":"54ad1eea61e664da0826a4431a664e90","name":"icons","taxonomy":"media-category"}
{"_id":"54ad1eea61e664da0826a44416ed14b9","create_date":1.641372991311E+12,"description":"","path":"/0001","taxonomy":"post-category","icon":"","level":1.0,"name":"通知公告","parent":"root","sort":1.0}
{"_id":"bf4a0bf261e67ad407593e875ee899fe","level":2,"description":"","icon":"","name":"综合部分","parent":"54ad1eea61e664da0826a43a088d008e","path":"/0003/0001","sort":1,"taxonomy":"post-category","create_date":1642494676513}
{"_id":"bf4a0bf261e67b0a07594e6736e3ea75","level":2,"description":"","icon":"","name":"城市管理","parent":"54ad1eea61e664da0826a43a088d008e","path":"/0003/0002","sort":2,"taxonomy":"post-category","create_date":1642494730607}
{"_id":"bf4a0bf261e67b1c0759620b7ccd55c5","level":2,"description":"","icon":"","name":"规划管理","parent":"54ad1eea61e664da0826a43a088d008e","path":"/0003/0003","sort":3,"taxonomy":"post-category","create_date":1642494748327}
{"_id":"17e3426e61e67b3e0767fd0a4417eae0","level":2,"description":"","icon":"","name":"建设管理","parent":"54ad1eea61e664da0826a43a088d008e","path":"/0003/0004","sort":4,"taxonomy":"post-category","create_date":1642494782197}
{"_id":"17e3426e61e67b4d076800b03c16e80e","level":2,"description":"","icon":"","name":"园林绿化管理","parent":"54ad1eea61e664da0826a43a088d008e","path":"/0003/0005","sort":5,"taxonomy":"post-category","create_date":1642494797189}
{"_id":"5b049cc861e67b5906ab18ef71d1bb7d","level":2,"description":"","icon":"","name":"房产管理","parent":"54ad1eea61e664da0826a43a088d008e","path":"/0003/0006","sort":6,"taxonomy":"post-category","create_date":1642494809625}
{"_id":"17e3426e61e67b6b07683dda20af5276","level":2,"description":"","icon":"","name":"市政公用管理","parent":"54ad1eea61e664da0826a43a088d008e","path":"/0003/0007","sort":7,"taxonomy":"post-category","create_date":1642494827871}
{"_id":"5b049cc862272b670fbaa77540aacab9","level":2,"description":"","icon":"","name":"市容环境类","parent":"54ad1eea61e664da0826a43e135c3fc2","path":"/0004/0001","sort":1,"taxonomy":"post-category","create_date":1646734183607}
{"_id":"41ae62ef622869590b465b0453b12e30","level":2,"description":"","icon":"","name":"街面秩序类","parent":"54ad1eea61e664da0826a43e135c3fc2","path":"/0004/0002","sort":2,"taxonomy":"post-category","create_date":1646815577035}
{"_id":"54ad1eea62286cb81526fe0d08e2efd9","level":2,"description":"","icon":"","name":"宣传广告类","parent":"54ad1eea61e664da0826a43e135c3fc2","path":"/0004/0003","sort":3,"taxonomy":"post-category","create_date":1646816440307}
{"_id":"17e3426e6229787e12b9e1495045f718","level":2,"description":"","icon":"","name":"施工管理类","parent":"54ad1eea61e664da0826a43e135c3fc2","path":"/0004/0004","sort":4,"taxonomy":"post-category","create_date":1646884990175}
{"_id":"41ae62ef622986a00b7052736170f1f6","level":2,"description":"","icon":"","name":"其他事件类","parent":"54ad1eea61e664da0826a43e135c3fc2","path":"/0004/0005","sort":5,"taxonomy":"post-category","create_date":1646888608653}
{"_id":"54ad1eea62298b27154f17cc5d4f2a16","level":1,"description":"","icon":"","name":"经验技巧","parent":"root","path":"/0006","sort":6,"taxonomy":"post-category","create_date":1646889767286}
{"_id":"bf4a0bf262298b6313b537db6a72f82e","level":2,"description":"","icon":"","name":"城管宣传技巧","parent":"54ad1eea62298b27154f17cc5d4f2a16","path":"/0006/0001","sort":1,"taxonomy":"post-category","create_date":1646889827698}
{"_id":"5b049cc862298b880ff64cef482753b5","level":2,"description":"","icon":"","name":"执法办案技巧","parent":"54ad1eea62298b27154f17cc5d4f2a16","path":"/0006/0002","sort":2,"taxonomy":"post-category","create_date":1646889864104}
{"_id":"17e3426e62298b9e12bca005682e2018","create_date":1.646889864104E+12,"level":2.0,"sort":3.0,"taxonomy":"post-category","description":"","icon":"","name":"工作经验体会","parent":"54ad1eea62298b27154f17cc5d4f2a16","path":"/0006/0003"}
{"_id":"17e3426e62298baf12bca1d11fc20d0e","level":2,"description":"","icon":"","name":"执法文书技巧","parent":"54ad1eea62298b27154f17cc5d4f2a16","path":"/0006/0004","sort":4,"taxonomy":"post-category","create_date":1646889903644}
{"_id":"5b049cc862298bee0ff655247bb946e2","level":2,"description":"","icon":"","name":"执法用语技巧","parent":"54ad1eea62298b27154f17cc5d4f2a16","path":"/0006/0005","sort":5,"taxonomy":"post-category","create_date":1646889966908}
{"_id":"41ae62ef62298c000b710f64205a73c9","level":2,"description":"","icon":"","name":"暴力突发应对","parent":"54ad1eea62298b27154f17cc5d4f2a16","path":"/0006/0006","sort":6,"taxonomy":"post-category","create_date":1646889984807}