**簡要描述:**
* 查詢專題列表
**請求URL:**
* /api/v2/topic_list
**請求方式:**
* POST
**header:**
| 參數名 | 必選 | 類型 | 說明 |
| --- | --- | --- | --- |
| Content-Type | 是 | JSON | application/json |
**請求參數:**
| 參數名 | 必選 | 類型 | 說明 |
| --- | --- | --- | --- |
| limit | 是 | int | 每頁輸出數量|
| page | 是 | int | 當前頁碼 |
**請求示例**
1.
~~~
{
"limit": "20", //頁碼默認為20
"page": "1", //當前頁碼
}
~~~
**查詢某個返回示例**
~~~
{
"msg": "ok", //返回數據說明,錯誤時可能會有提示,成功時,可以為空
"status": 200, //200表示OK,其他狀態500:錯誤
"result": null
}
~~~
**返回結果部分字段**
| 參數名 | 必選 | 類型 | 說明 |
| --- | --- | --- | --- |
| page | 是 | int | 當前是第幾頁,從0開始 |
| pageSize | 是 | int | 每頁最多顯示多少條,查詢請求參數是多少就多少 |
| total | 是 | int | 總數據數 |
| rows | 是 | array | 數據,為空時輸出\[\] |
**rows結構體說明**
| 參數名 | 必選 | 類型 | 說明 |
| --- | --- | --- | --- |
| topic_id| 是 | int | 專題ID |
| topic_name | 是 | String | 專題標題 |
| topic_pic | 是 | String | 專題圖片 |
| topic_level| 是 | int | 推薦級別 |
| topic_blurb | 是 | String | 專題簡介 |
**專題列表數據**
~~~
{
"status":200,
"msg":"ok",
"result":{
"page":1,
"pageSize":20,
"total":2,
"rows":[
{
"topic\_id":2,
"topic\_name":"1111111111111",
"topic\_pic":"upload\\/topic\\/20210104-1\\/d3ab08e8e1fb11d0fde479bb7609531f.png",
"topic\_level":0,
"topic\_blurb":"333333333333333"
},
{
"topic\_id":1,
"topic\_name":"mingcheng",
"topic\_pic":"upload\\/topic\\/20210104-1\\/b290b4c9defc7f668c0c75a1d026ea55.png",
"topic\_level":0,
"topic\_blurb":"簡介"
}
]
}
}
~~~