[TOC=2]
## 枚舉變量
## 常見問題列表
~~~[api]
get:/faq/list
int:current_page=1#當前頁
int:page_number=10#頁碼
<<<
success
{
"code": 0,
"data": {
"list": [
{
"id": 1,//常見問題id
"title": "1",//標題
"content": "11",//內容
"create_time": "2017-02-01 00:00:00"//創建時間
}
],
"current_page": 1,//當前頁
"page_number": 10,//頁碼
"total": 3//總條數
}
}
~~~
## 詳情
~~~[api]
get:/faq/detail
*int:id=0#常見問題id
<<<
success
// 正確id返回
{
"code": 0,
"data": {
"id": 1,//常見問題id
"title": "1",//標題
"content": "11",//內容
"create_time": "2017-02-01 00:00:00"//創建時間
}
}
<<<
error
// id 不存在返回
{
"code": 0
}
~~~
## 問題搜索
~~~[api]
get:/faq/search
*string:search=""#問題
<<<
success
{
"code": 0,
"data": {
"list": [
{
"id": 3,
"title": "3333",
"content": "33333",
"create_time": "2018-03-21 15:05:11"
}
]
}
}
~~~