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

获取聊天会话列表

接口URL

https://sqapi2.dishawang.com/api/v1/im/conversation/:page

请求方式

GET

Content-Type

form-data

请求Header参数

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

路径变量

参数名示例值参数描述
page1页码

成功响应示例

json
{
  "code": 1,
  "msg": "ok",
  "data": {
    "total": 13,
    "per_page": 10,
    "current_page": 1,
    "last_page": 2,
    "data": [
      {
        "id": 59,
        "target_id": 1783,
        "unread_count": 2,
        "last_msg_note": "123",
        "update_time": "2024-04-07 00:59:46",
        "name": "134****6581",
        "avatar": null
      },
      {
        "id": 57,
        "target_id": 1754,
        "unread_count": 0,
        "last_msg_note": "111",
        "update_time": "2024-04-06 18:42:02",
        "name": "123",
        "avatar": "http://sqapi2.dishawang.com/storage/avatar/661102bfe7fb7.jpeg"
      },
      {
        "id": 53,
        "target_id": 1735,
        "unread_count": 0,
        "last_msg_note": "321",
        "update_time": "2024-03-27 00:33:15",
        "name": "134****4512",
        "avatar": null
      },
      {
        "id": 55,
        "target_id": 1713,
        "unread_count": 0,
        "last_msg_note": "321",
        "update_time": "2024-03-27 00:31:47",
        "name": "135****5451",
        "avatar": null
      },
      {
        "id": 3,
        "target_id": 12,
        "unread_count": 0,
        "last_msg_note": "哈哈哈",
        "update_time": "2024-03-26 23:02:51",
        "name": "稚",
        "avatar": "https://ceshi2.dishait.cn/uploads/20210324/1609ae0769b69576a6cba380e959383f.jpg"
      },
      {
        "id": 41,
        "target_id": 1695,
        "unread_count": 0,
        "last_msg_note": "你好啊",
        "update_time": "2024-02-01 22:32:17",
        "name": "135****2563",
        "avatar": null
      },
      {
        "id": 37,
        "target_id": 1694,
        "unread_count": 0,
        "last_msg_note": "12",
        "update_time": "2024-01-26 17:08:06",
        "name": "135****6321",
        "avatar": null
      },
      {
        "id": 35,
        "target_id": 1693,
        "unread_count": 0,
        "last_msg_note": "哈哈哈",
        "update_time": "2024-01-26 17:08:01",
        "name": "134****6946",
        "avatar": "http://sqapi2.dishawang.com/storage/avatar/65b2d1a9b3717.jpg"
      },
      {
        "id": 33,
        "target_id": 1690,
        "unread_count": 0,
        "last_msg_note": "111\n",
        "update_time": "2024-01-24 02:06:37",
        "name": "136****5321",
        "avatar": null
      },
      {
        "id": 26,
        "target_id": 1630,
        "unread_count": 0,
        "last_msg_note": "333",
        "update_time": "2024-01-24 01:50:40",
        "name": "18999617599",
        "avatar": null
      }
    ]
  }
}