狼行天下

狼行天下


游记/攻略评论模块

<h5>简要描述</h5> <ul> <li>攻略评论查询</li> </ul> <h5>请求URL</h5> <ul> <li><code>http://localhost:9000/cmt/strategies/comments/queryComment</code></li> </ul> <h5>请求方式</h5> <ul> <li>GET</li> </ul> <h5>参数</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">currentPage</td> <td style="text-align: left;">否</td> <td style="text-align: left;">Integer</td> <td>当前页</td> </tr> <tr> <td style="text-align: left;">pageSize</td> <td style="text-align: left;">否</td> <td style="text-align: left;">Integer</td> <td>每页显示条数</td> </tr> <tr> <td style="text-align: left;">keyword</td> <td style="text-align: left;">否</td> <td style="text-align: left;">string</td> <td>关键字</td> </tr> </tbody> </table> <h5>返回示例</h5> <pre><code> {     "msg": "success",     "code": 200,     "data": {         "content": [             {                 "id": "63b2854f9daa3c19c74c9a29",                 "strategyId": 22,                 "strategyTitle": "测试1",                 "userId": 1,                 "nickname": "xiaoliu",                 "city": "成都",                 "level": 1000,                 "headImgUrl": "/images/default.jpg",                 "createTime": "2023-01-02 15:18:39",                 "content": "2222",                 "thumbupnum": 2,                 "thumbuplist": [                     1,                     8                 ]             },             {                 "id": "63b294959daa3c19c74c9a2a",                 "strategyId": 22,                 "strategyTitle": "测试1",                 "userId": 8,                 "nickname": "管理员",                 "city": null,                 "level": 0,                 "headImgUrl": "/images/header/ljy.jpg",                 "createTime": "2023-01-02 16:23:49",                 "content": "(愤怒小蜂)xxxx",                 "thumbupnum": 0,                 "thumbuplist": []             },             {                 "id": "63b2de25524e3d78bc0238af",                 "strategyId": 22,                 "strategyTitle": "测试1",                 "userId": 1,                 "nickname": "xiaoliu",                 "city": "成都",                 "level": 1000,                 "headImgUrl": "/images/default.jpg",                 "createTime": "2023-01-02 21:37:41",                 "content": "123",                 "thumbupnum": 0,                 "thumbuplist": []             },             {                 "id": "63be818d108c1216e12e5807",                 "strategyId": null,                 "strategyTitle": null,                 "userId": 1,                 "nickname": "xiaoliu",                 "city": "成都",                 "level": 1000,                 "headImgUrl": "/images/default.jpg",                 "createTime": "2023-01-11 17:29:49",                 "content": "*擦",                 "thumbupnum": 0,                 "thumbuplist": []             },             {                 "id": "63bfa5650392e52507ffe5d6",                 "strategyId": 11,                 "strategyTitle": "玩遍大北京!你绝不可错过的景点",                 "userId": 1,                 "nickname": "xiaoliu",                 "city": "成都",                 "level": 1000,                 "headImgUrl": "/images/default.jpg",                 "createTime": "2023-01-12 14:15:01",                 "content": "11",                 "thumbupnum": 0,                 "thumbuplist": []             },             {                 "id": "63bfa56d0392e52507ffe5d7",                 "strategyId": 11,                 "strategyTitle": "玩遍大北京!你绝不可错过的景点",                 "userId": 1,                 "nickname": "xiaoliu",                 "city": "成都",                 "level": 1000,                 "headImgUrl": "/images/default.jpg",                 "createTime": "2023-01-12 14:15:09",                 "content": "**",                 "thumbupnum": 0,                 "thumbuplist": []             },             {                 "id": "63bfa5ad0392e52507ffe5d8",                 "strategyId": 11,                 "strategyTitle": "玩遍大北京!你绝不可错过的景点",                 "userId": 1,                 "nickname": "xiaoliu",                 "city": "成都",                 "level": 1000,                 "headImgUrl": "/images/default.jpg",                 "createTime": "2023-01-12 14:16:13",                 "content": "**",                 "thumbupnum": 0,                 "thumbuplist": []             },             {                 "id": "63bfa6150392e52507ffe5d9",                 "strategyId": 11,                 "strategyTitle": "玩遍大北京!你绝不可错过的景点",                 "userId": 1,                 "nickname": "xiaoliu",                 "city": "成都",                 "level": 1000,                 "headImgUrl": "/images/default.jpg",                 "createTime": "2023-01-12 14:17:57",                 "content": "是吧1",                 "thumbupnum": 0,                 "thumbuplist": []             },             {                 "id": "63bfa68c0392e52507ffe5da",                 "strategyId": 14,                 "strategyTitle": "日本好吃不贵的排队美食大全!(含东京、大阪、京都)",                 "userId": 1,                 "nickname": "xiaoliu",                 "city": "成都",                 "level": 1000,                 "headImgUrl": "/images/default.jpg",                 "createTime": "2023-01-12 14:19:56",                 "content": "**",                 "thumbupnum": 0,                 "thumbuplist": []             },             {                 "id": "63bfa6970392e52507ffe5db",                 "strategyId": 14,                 "strategyTitle": "日本好吃不贵的排队美食大全!(含东京、大阪、京都)",                 "userId": 1,                 "nickname": "xiaoliu",                 "city": "成都",                 "level": 1000,                 "headImgUrl": "/images/default.jpg",                 "createTime": "2023-01-12 14:20:07",                 "content": "**",                 "thumbupnum": 0,                 "thumbuplist": []             }         ],         "pageable": {             "sort": {                 "sorted": false,                 "unsorted": true,                 "empty": true             },             "offset": 0,             "pageSize": 10,             "pageNumber": 0,             "unpaged": false,             "paged": true         },         "totalPages": 2,         "totalElements": 13,         "last": false,         "number": 0,         "size": 10,         "sort": {             "sorted": false,             "unsorted": true,             "empty": true         },         "numberOfElements": 10,         "first": true,         "empty": false     } }</code></pre> <h5>简要描述</h5> <ul> <li>游记评论查询</li> </ul> <h5>请求URL</h5> <ul> <li><code>http://localhost:9000/cmt/travels/comments/queryComment</code></li> </ul> <h5>请求方式</h5> <ul> <li>GET</li> </ul> <h5>参数</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">currentPage</td> <td style="text-align: left;">否</td> <td style="text-align: left;">Integer</td> <td>当前页</td> </tr> <tr> <td style="text-align: left;">pageSize</td> <td style="text-align: left;">否</td> <td style="text-align: left;">Integer</td> <td>每页显示条数</td> </tr> <tr> <td style="text-align: left;">keyword</td> <td style="text-align: left;">否</td> <td style="text-align: left;">string</td> <td>关键字</td> </tr> </tbody> </table> <h5>返回示例</h5> <pre><code>{     "msg": "success",     "code": 200,     "data": {         "content": [             {                 "id": "63b2a08ace31847bced29da8",                 "travelId": 5,                 "travelTitle": "5月趣上海,非去不可",                 "userId": 1,                 "nickname": "xiaoliu",                 "city": "成都",                 "level": 1000,                 "headImgUrl": "/images/default.jpg",                 "type": 0,                 "createTime": "2023-01-02 17:14:50",                 "content": "123",                 "refComment": null             },             {                 "id": "63b2a0c2ce31847bced29da9",                 "travelId": 5,                 "travelTitle": "5月趣上海,非去不可",                 "userId": 1,                 "nickname": "xiaoliu",                 "city": "成都",                 "level": 1000,                 "headImgUrl": "/images/default.jpg",                 "type": 0,                 "createTime": "2023-01-02 17:15:46",                 "content": "&lt;img src=\"/images/emoji/brands_v3/40@2x.png\"style=\"width: width:28px;\"/&gt;测试评论2",                 "refComment": null             },             {                 "id": "63bd019ec15a1d6936eb35f1",                 "travelId": 2,                 "travelTitle": "每年都会有的广州情节",                 "userId": 1,                 "nickname": "xiaoliu",                 "city": "成都",                 "level": 1000,                 "headImgUrl": "/images/default.jpg",                 "type": 0,                 "createTime": "2023-01-10 14:11:42",                 "content": "111",                 "refComment": null             },             {                 "id": "63bd019ec15a1d6936eb35f2",                 "travelId": 2,                 "travelTitle": "每年都会有的广州情节",                 "userId": 1,                 "nickname": "xiaoliu",                 "city": "成都",                 "level": 1000,                 "headImgUrl": "/images/default.jpg",                 "type": 0,                 "createTime": "2023-01-10 14:11:42",                 "content": "111",                 "refComment": null             },             {                 "id": "63bd01a2c15a1d6936eb35f3",                 "travelId": 2,                 "travelTitle": "每年都会有的广州情节",                 "userId": 1,                 "nickname": "xiaoliu",                 "city": "成都",                 "level": 1000,                 "headImgUrl": "/images/default.jpg",                 "type": 0,                 "createTime": "2023-01-10 14:11:46",                 "content": "22",                 "refComment": null             }         ],         "pageable": {             "sort": {                 "sorted": false,                 "unsorted": true,                 "empty": true             },             "offset": 0,             "pageSize": 5,             "pageNumber": 0,             "unpaged": false,             "paged": true         },         "totalPages": 3,         "totalElements": 14,         "last": false,         "number": 0,         "size": 5,         "sort": {             "sorted": false,             "unsorted": true,             "empty": true         },         "numberOfElements": 5,         "first": true,         "empty": false     } }</code></pre>

页面列表

ITEM_HTML