Skip to content
关注公众号,获取新课通知

获取指定话题下的帖子列表

接口URL

https://sqapi2.dishawang.com/api/v1/topic/:topic_id/article/:page?order=hot

请求方式

GET

Content-Type

form-data

请求Header参数

参数名示例值参数类型是否必填参数描述
token36040cbcde65e482739afca7a5465ab750c1c5d5String用户token

请求Query参数

参数名示例值参数类型是否必填参数描述
orderhotString排序:new最新,hot热门

路径变量

参数名示例值参数描述
topic_id2话题ID
page1页码

成功响应示例

json
{
  "code": 1,
  "msg": "ok",
  "data": {
    "total": 9,
    "per_page": 10,
    "current_page": 1,
    "last_page": 1,
    "data": [
      {
        "id": 1752,
        "user_id": 1610,
        "title": "学习",
        "images": [],
        "url": "",
        "category_id": 4,
        "topic_id": 2,
        "share_count": 0,
        "ding_count": 0,
        "cai_count": 0,
        "comment_count": 0,
        "read_count": 5,
        "collect_count": 0,
        "create_time": "2023-12-04 17:05:53",
        "update_time": "2024-04-06 16:32:09",
        "name": "blue_star",
        "avatar": "https://ceshi2.dishait.cn/uploads/20231024/8f861854cb72ad9602e3bf30bca8097d.jpg",
        "user_status": 1,
        "topic_name": "鬼畜中心",
        "user_support_action": "",
        "isfollow": false
      },
      {
        "id": 1756,
        "user_id": 1349,
        "title": "命运永远掌握在自己手中",
        "images": [],
        "url": "",
        "category_id": 2,
        "topic_id": 2,
        "share_count": 0,
        "ding_count": 1,
        "cai_count": 0,
        "comment_count": 2,
        "read_count": 8,
        "collect_count": 0,
        "create_time": "2023-12-15 10:26:17",
        "update_time": "2024-04-06 01:07:16",
        "name": "lucky",
        "avatar": "https://ceshi2.dishait.cn/uploads/20230919/5f3438d61e87402ae5eefc60b4c95afb.png",
        "user_status": 1,
        "topic_name": "鬼畜中心",
        "user_support_action": "ding",
        "isfollow": true
      },
      {
        "id": 1753,
        "user_id": 1610,
        "title": "学生艺术画展",
        "images": [],
        "url": "",
        "category_id": 1,
        "topic_id": 2,
        "share_count": 0,
        "ding_count": 1,
        "cai_count": 0,
        "comment_count": 1,
        "read_count": 1,
        "collect_count": 0,
        "create_time": "2023-12-06 19:59:59",
        "update_time": "2024-01-26 15:29:20",
        "name": "blue_star",
        "avatar": "https://ceshi2.dishait.cn/uploads/20231024/8f861854cb72ad9602e3bf30bca8097d.jpg",
        "user_status": 1,
        "topic_name": "鬼畜中心",
        "user_support_action": "",
        "isfollow": false
      },
      {
        "id": 1751,
        "user_id": 1627,
        "title": "卡哇伊",
        "images": [],
        "url": "",
        "category_id": 3,
        "topic_id": 2,
        "share_count": 0,
        "ding_count": 1,
        "cai_count": 0,
        "comment_count": 0,
        "read_count": 4,
        "collect_count": 0,
        "create_time": "2023-12-01 14:40:45",
        "update_time": "2024-03-26 16:51:52",
        "name": "15198266481",
        "avatar": "https://ceshi2.dishait.cn/uploads/20231201/ca0b578ad7df739a3fd3b6b0cce02a6e.jpg",
        "user_status": 1,
        "topic_name": "鬼畜中心",
        "user_support_action": "ding",
        "isfollow": false
      },
      {
        "id": 1754,
        "user_id": 1547,
        "title": "我是S",
        "images": [],
        "url": "",
        "category_id": 1,
        "topic_id": 2,
        "share_count": 0,
        "ding_count": 2,
        "cai_count": 0,
        "comment_count": 0,
        "read_count": 0,
        "collect_count": 0,
        "create_time": "2023-12-08 20:03:46",
        "update_time": null,
        "name": "218468723",
        "avatar": null,
        "user_status": 1,
        "topic_name": "鬼畜中心",
        "user_support_action": "",
        "isfollow": true
      },
      {
        "id": 1755,
        "user_id": 1665,
        "title": "#到底\n什么?对对对,",
        "images": [],
        "url": "",
        "category_id": 1,
        "topic_id": 2,
        "share_count": 0,
        "ding_count": 5,
        "cai_count": 0,
        "comment_count": 0,
        "read_count": 0,
        "collect_count": 0,
        "create_time": "2023-12-11 14:19:29",
        "update_time": null,
        "name": "18310579837",
        "avatar": null,
        "user_status": 1,
        "topic_name": "鬼畜中心",
        "user_support_action": "",
        "isfollow": false
      },
      {
        "id": 1765,
        "user_id": 1678,
        "title": "在ThinkPHP 6中,如果你想从content字段中截取部分内容来设置为标题title,你可以使用字符串处理函数来实现。以下是一个简单的例子,展示了如何在模型或控制器中完成这个任务:假设你有一个文...",
        "images": [],
        "url": "",
        "category_id": 1,
        "topic_id": 2,
        "share_count": 0,
        "ding_count": 8,
        "cai_count": 0,
        "comment_count": 0,
        "read_count": 0,
        "collect_count": 0,
        "create_time": "2024-01-02 22:18:17",
        "update_time": "2024-01-02 22:18:17",
        "name": "哈哈哈",
        "avatar": "http://sqapi2.dishawang.com/storage/avatar/6593cc021c4b0.jpeg",
        "user_status": 1,
        "topic_name": "鬼畜中心",
        "user_support_action": "",
        "isfollow": true
      },
      {
        "id": 1764,
        "user_id": 1678,
        "title": "在ThinkPHP 6中,如果你想从content字段中截取部分内容来设置为标题title,你可以使...",
        "images": [],
        "url": "",
        "category_id": 1,
        "topic_id": 2,
        "share_count": 0,
        "ding_count": 9,
        "cai_count": 0,
        "comment_count": 0,
        "read_count": 0,
        "collect_count": 0,
        "create_time": "2024-01-02 22:17:40",
        "update_time": "2024-01-02 22:17:40",
        "name": "哈哈哈",
        "avatar": "http://sqapi2.dishawang.com/storage/avatar/6593cc021c4b0.jpeg",
        "user_status": 1,
        "topic_name": "鬼畜中心",
        "user_support_action": "",
        "isfollow": true
      },
      {
        "id": 1766,
        "user_id": 1667,
        "title": "在ThinkPHP 6中,如果你想从content字段中截取部分内容来设置为标题title,你可以使用字符串处理函数来实现。以下是一个简单的例子,展示了如何在模型或控制器中完成这个任务:假设你有一个文...",
        "images": [
          "http://127.0.0.1:8000/storage/uploads/b06f4eed45b5fd11157f5a83b34a1cd8.jpeg",
          "http://127.0.0.1:8000/storage/uploads/b06f4eed45b5fd11157f5a83b34a1cd8.jpeg"
        ],
        "url": "",
        "category_id": 1,
        "topic_id": 2,
        "share_count": 0,
        "ding_count": 10,
        "cai_count": 0,
        "comment_count": 0,
        "read_count": 4,
        "collect_count": 0,
        "create_time": "2024-01-02 22:21:37",
        "update_time": "2024-04-07 01:04:52",
        "name": "18634616461",
        "avatar": null,
        "user_status": 1,
        "topic_name": "鬼畜中心",
        "user_support_action": "",
        "isfollow": false
      }
    ]
  }
}