## 获取导航数据
~~~[api]
get:/Index/channel
<<<
success
{
"code": 0,
"msg": "获取成功",
"data": [
{
"id": 1,
"name": "关于大赛",
"pid": 0,
"diyname": "",
"children": []
},
{
"id": 8,
"name": "大赛快讯",
"pid": 0,
"diyname": "",
"children": [
{
"id": 9,
"name": "大赛快讯",
"pid": 8,
"diyname": "news.html"
},
{
"id": 10,
"name": "媒体报道",
"pid": 8,
"diyname": "news.html"
}
]
}
]
}
~~~
## 字段列表
| 字段 | 说明 |
| --- | --- |
| id | 导航栏目ID |
| name | 导航栏目名称 |
| diyname | 自定义url |
| children | 下级导航 |
| banner | banner图 |