列出子脑图
const r = await mn.api('/study-sets/' + topicid + '/sub-maps');
mn.log(r.subMaps.map(s => s.title));{
"subMaps": [
{
"noteid": "BCC8D945-7585-425A-9FDF-E24C6503F628",
"title": "第一章",
"cardCount": 12,
"parentPath": [],
"depth": 0
},
{
"noteid": "6DB00884-02B3-4FF9-A64D-08D555CC6F04",
"title": "第一节",
"cardCount": 4,
"parentPath": [
"第一章"
],
"depth": 1
}
]
}学习集与卡组
列出子脑图
列出该学习集里的子脑图,顺序与界面一致。子脑图可以嵌套,
深度大于 0 表示这张卡套在别的子脑图里,parentPath 从外到内列出祖先。
GET
/
study-sets
/
{topicid}
/
sub-maps
列出子脑图
const r = await mn.api('/study-sets/' + topicid + '/sub-maps');
mn.log(r.subMaps.map(s => s.title));{
"subMaps": [
{
"noteid": "BCC8D945-7585-425A-9FDF-E24C6503F628",
"title": "第一章",
"cardCount": 12,
"parentPath": [],
"depth": 0
},
{
"noteid": "6DB00884-02B3-4FF9-A64D-08D555CC6F04",
"title": "第一节",
"cardCount": 4,
"parentPath": [
"第一章"
],
"depth": 1
}
]
}