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

获取指定分类下的帖子列表

接口URL

https://sqapi2.dishawang.com/api/v1/category/:category_id/article/:page

请求方式

GET

Content-Type

form-data

请求Header参数

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

路径变量

参数名示例值参数描述
category_id2分类ID,当等于0时获取当前关注用户的帖子列表
page1页码

成功响应示例

json
{
  "code": 1,
  "msg": "ok",
  "data": {
    "total": 292,
    "per_page": 10,
    "current_page": 1,
    "last_page": 30,
    "data": [
      {
        "id": 1772,
        "user_id": 7,
        "title": "往期经典:《uni-app实战在线教育类app开发》\n课程包括:图文,音频,视频,电子书、会员、直播、问答、考试、拼团秒杀、优惠券。一次开发,同时搞定Android、iOS、微信小程序、H5端。\n",
        "images": [
          "https://tangzhe123-com.oss-cn-shenzhen.aliyuncs.com/Appstatic/qsbk/demo/datapic2/2a1a5db1daab4b888a342a5b899fc69d_1031736698.png",
          "https://tangzhe123-com.oss-cn-shenzhen.aliyuncs.com/Appstatic/qsbk/demo/datapic2/678df01619d34a0a8e96821ebd912454_1031736802.png",
          "https://tangzhe123-com.oss-cn-shenzhen.aliyuncs.com/Appstatic/qsbk/demo/datapic2/a6f336c10a444da89d1d3f6501188150_1031736805.png",
          "https://tangzhe123-com.oss-cn-shenzhen.aliyuncs.com/Appstatic/qsbk/demo/datapic2/b213009db532431687b3b12edbf4a276_1031736699.png",
          "https://tangzhe123-com.oss-cn-shenzhen.aliyuncs.com/Appstatic/qsbk/demo/datapic2/c372d6f7fa064409964ef037849dc505_1031736697.png",
          "https://tangzhe123-com.oss-cn-shenzhen.aliyuncs.com/Appstatic/qsbk/demo/datapic2/e6b2418a3918419392eb86b2cba6d341_1031736700.png"
        ],
        "url": "",
        "category_id": 2,
        "topic_id": 0,
        "share_count": 0,
        "ding_count": 6,
        "cai_count": 7,
        "comment_count": 4,
        "read_count": 98,
        "collect_count": 2,
        "create_time": "2024-01-17 17:27:06",
        "update_time": "2024-04-07 01:00:44",
        "name": "演示账号",
        "avatar": "http://sqapi2.dishawang.com/storage/uploads/a48a12a09a6654712f2d430d02dbc572.jpeg",
        "user_status": 1,
        "topic_name": null,
        "user_support_action": "ding",
        "isfollow": true
      },
      {
        "id": 1771,
        "user_id": 7,
        "title": "往期经典课程:《uni-app实战仿微信app开发》\n",
        "images": [
          "http://demo-mp3.oss-cn-shenzhen.aliyuncs.com/egg-edu-demo/2e96031726768d0d493f.png"
        ],
        "url": "",
        "category_id": 2,
        "topic_id": 0,
        "share_count": 0,
        "ding_count": 3,
        "cai_count": 1,
        "comment_count": 0,
        "read_count": 41,
        "collect_count": 2,
        "create_time": "2024-01-17 17:26:30",
        "update_time": "2024-04-05 20:45:49",
        "name": "演示账号",
        "avatar": "http://sqapi2.dishawang.com/storage/uploads/a48a12a09a6654712f2d430d02dbc572.jpeg",
        "user_status": 1,
        "topic_name": null,
        "user_support_action": "ding",
        "isfollow": true
      },
      {
        "id": 1770,
        "user_id": 7,
        "title": "在ThinkPHP 6中,如果你想从content字段中截取部分内容来设置为标题title,你可以使用字符串处理函数来实现。以下是一个简单的例子,展示了如何在模型或控制器中完成这个任务:假设你有一个文...",
        "images": [
          "https://tangzhe123-com.oss-cn-shenzhen.aliyuncs.com/Appstatic/qsbk/demo/datapic/47.jpg"
        ],
        "url": "",
        "category_id": 2,
        "topic_id": 0,
        "share_count": 0,
        "ding_count": 0,
        "cai_count": 1,
        "comment_count": 0,
        "read_count": 31,
        "collect_count": 1,
        "create_time": "2024-01-17 17:25:55",
        "update_time": "2024-04-03 17:26:12",
        "name": "演示账号",
        "avatar": "http://sqapi2.dishawang.com/storage/uploads/a48a12a09a6654712f2d430d02dbc572.jpeg",
        "user_status": 1,
        "topic_name": null,
        "user_support_action": "",
        "isfollow": true
      },
      {
        "id": 1769,
        "user_id": 7,
        "title": "在ThinkPHP 6中,如果你想从content字段中截取部分内容来设置为标题title,你可以使用字符串处理函数来实现。以下是一个简单的例子,展示了如何在模型或控制器中完成这个任务:假设你有一个文...",
        "images": [
          "https://tangzhe123-com.oss-cn-shenzhen.aliyuncs.com/Appstatic/qsbk/demo/datapic/34.jpg"
        ],
        "url": "",
        "category_id": 2,
        "topic_id": 0,
        "share_count": 0,
        "ding_count": 0,
        "cai_count": 0,
        "comment_count": 0,
        "read_count": 11,
        "collect_count": 0,
        "create_time": "2024-01-17 17:25:44",
        "update_time": "2024-04-03 08:48:12",
        "name": "演示账号",
        "avatar": "http://sqapi2.dishawang.com/storage/uploads/a48a12a09a6654712f2d430d02dbc572.jpeg",
        "user_status": 1,
        "topic_name": null,
        "user_support_action": "",
        "isfollow": true
      },
      {
        "id": 1767,
        "user_id": 7,
        "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": 2,
        "topic_id": 1,
        "share_count": 0,
        "ding_count": 1,
        "cai_count": 2,
        "comment_count": 22,
        "read_count": 27,
        "collect_count": 0,
        "create_time": "2024-01-16 16:04:35",
        "update_time": "2024-04-06 07:55:46",
        "name": "演示账号",
        "avatar": "http://sqapi2.dishawang.com/storage/uploads/a48a12a09a6654712f2d430d02dbc572.jpeg",
        "user_status": 1,
        "topic_name": null,
        "user_support_action": "cai",
        "isfollow": true
      },
      {
        "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": 1748,
        "user_id": 1424,
        "title": "今天有点冷",
        "images": [],
        "url": "",
        "category_id": 2,
        "topic_id": 0,
        "share_count": 0,
        "ding_count": 0,
        "cai_count": 0,
        "comment_count": 2,
        "read_count": 10,
        "collect_count": 0,
        "create_time": "2023-11-29 14:04:02",
        "update_time": "2024-04-06 01:07:21",
        "name": "18001066656",
        "avatar": null,
        "user_status": 1,
        "topic_name": null,
        "user_support_action": "",
        "isfollow": true
      },
      {
        "id": 1747,
        "user_id": 1653,
        "title": "11111",
        "images": [],
        "url": "",
        "category_id": 2,
        "topic_id": 0,
        "share_count": 0,
        "ding_count": 0,
        "cai_count": 0,
        "comment_count": 0,
        "read_count": 3,
        "collect_count": 0,
        "create_time": "2023-11-28 14:01:14",
        "update_time": "2024-03-30 21:03:39",
        "name": "18172741527",
        "avatar": null,
        "user_status": 1,
        "topic_name": null,
        "user_support_action": "",
        "isfollow": false
      },
      {
        "id": 1746,
        "user_id": 1652,
        "title": "111111",
        "images": [],
        "url": "",
        "category_id": 2,
        "topic_id": 0,
        "share_count": 0,
        "ding_count": 1,
        "cai_count": 0,
        "comment_count": 0,
        "read_count": 0,
        "collect_count": 0,
        "create_time": "2023-11-28 13:34:40",
        "update_time": "2024-04-04 02:17:20",
        "name": "18172746578",
        "avatar": null,
        "user_status": 1,
        "topic_name": null,
        "user_support_action": "",
        "isfollow": false
      },
      {
        "id": 1739,
        "user_id": 1625,
        "title": "哈哈哈哈",
        "images": [],
        "url": "",
        "category_id": 2,
        "topic_id": 0,
        "share_count": 0,
        "ding_count": 0,
        "cai_count": 0,
        "comment_count": 0,
        "read_count": 1,
        "collect_count": 0,
        "create_time": "2023-11-16 17:25:19",
        "update_time": "2024-03-31 17:33:01",
        "name": "15180220651",
        "avatar": "https://ceshi2.dishait.cn/uploads/20231110/8cb2c582b3fedf87f20f571fb2289310.png",
        "user_status": 1,
        "topic_name": null,
        "user_support_action": "",
        "isfollow": false
      }
    ]
  }
}