点开工具、字典、anything


爆文小程序

<h3>爆文小程序</h3> <h4>文章列表</h4> <p>请求地址: GET <code>popArticle/getArticles</code></p> <table> <thead> <tr> <th>字段</th> <th>类型</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>articleId</td> <td>integer</td> <td>文章id(可选)</td> </tr> <tr> <td>orderBy</td> <td>string</td> <td>排序字段(可选) updated_at更新时间(默认)、score热度</td> </tr> <tr> <td>orderType</td> <td>string</td> <td>排序方式(可选) asc正序、desc倒序(默认)</td> </tr> </tbody> </table> <hr /> <p>返回示例</p> <pre><code>{ "code": 1, "msg": "", "data": { "list": [ { "articleId": 10000, "title": "文章标题", "score": 1000 } ], "count": 10 } }</code></pre> <hr /> <h4>添加文章</h4> <p>请求地址: POST <code>popArticle/addArticle</code></p> <table> <thead> <tr> <th>字段</th> <th>类型</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>articleId</td> <td>integer</td> <td>文章id</td> </tr> <tr> <td>score</td> <td>integer</td> <td>热度</td> </tr> </tbody> </table> <hr /> <h4>更新文章</h4> <p>请求地址: POST <code>popArticle/updateArticle</code></p> <table> <thead> <tr> <th>字段</th> <th>类型</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>articleId</td> <td>integer</td> <td>文章id</td> </tr> <tr> <td>score</td> <td>integer</td> <td>热度</td> </tr> </tbody> </table> <hr /> <h4>删除文章</h4> <p>请求地址: POST <code>popArticle/deleteArticle</code></p> <table> <thead> <tr> <th>字段</th> <th>类型</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>articleId</td> <td>integer</td> <td>文章id</td> </tr> </tbody> </table>

页面列表

ITEM_HTML