# 搜索分类
网址 http://网址/api/searchforum.html
用于发帖时快速搜索分类,所以需要登录后才能请求
**请求参数**
| 请求类型 | name |
| --- | --- |
| get | 关键词 |
**返回数据**
```
{
"msg": "success",
"code": 1, // 0 失败 1成功
"error": true,
"data": {
// 搜索结果
"search": [
{
"id": "1",
"name": "官网公告",
"posts": "90",
"threads": "56",
"icon": "http://hy.cn/upload/forum1.png"
},
{
"id": "9",
"name": "版主公告",
"posts": "55",
"threads": "8",
"icon": "http://hy.cn/upload/de.png"
}
]
}
}
```