Interface TreeNodeDTO
目录树节点,站点侧边栏导航与目录树接口的基本单元。
| Name | Data Type | Required | Description |
|---|---|---|---|
| title | string | Yes | 节点显示名,已剥离标题标签与扩展名 |
| path | string | Yes | 页面路径,相对站点根(目录节点指向其 index.html) |
| tags | array | Yes | 标题标签小写数组,无标签时为空数组 |
| children | array | Yes | 子节点数组,叶子节点为空数组 |
type TreeNodeDTO = {
/** 节点显示名,已剥离标题标签与扩展名 */
title: string
/** 页面路径,相对站点根(目录节点指向其 index.html) */
path: string
/** 标题标签小写数组,无标签时为空数组 */
tags: string[]
/** 子节点数组,叶子节点为空数组 */
children: Record<string, unknown>[]
}{
"title": "sites",
"path": "cn/api_references/api-v1/sites/index.html",
"tags": [],
"children": [
{
"title": "注册 git 源站点",
"path": "cn/api_references/api-v1/sites/add.html",
"tags": [
"post"
],
"children": []
}
]
}