飞猪聊天室
  1. room
飞猪聊天室
  • group-application
    • 查看发送的群聊申请
      GET
    • 查看接收的群聊申请
      GET
    • 决定同意/不同意群聊申请
      PUT
    • 发起申请添加群聊
      POST
  • friend-application
    • 查看发送的好友申请
      GET
    • 查看接收的好友申请
      GET
    • 决定同意/不同意好友申请
      PUT
    • 发起申请添加好友
      POST
  • login and register
    • 通过验证码完成注册
      POST
    • 用户获取验证码
      GET
    • 用户登录
      POST
    • 用户登出
      POST
  • group-room
    • 添加群聊
      POST
    • 搜索群聊
      GET
  • room
    • 查询用户所有聊天会话列表及其已读消息
      GET
    • 查询聊天室的所有用户列表
      GET
    • 查询用户聊天室列表
      GET
  • room-message
    • 获取会话信息
      GET
  • user
    • 更新用户信息
      PUT
    • 获取自身的信息
      GET
    • 获取用户的信息
      GET
    • 搜索用户
      GET
  • 聊天接口
  1. room

查询用户所有聊天会话列表及其已读消息

开发中
GET
/room/with-read-msg/list

请求参数

Header 参数
Authorization
string 
t'oken
可选

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/room/with-read-msg/list' \
--header 'Authorization;'

返回响应

🟢200成功
application/json
Body
code
integer 
必需
msg
string 
必需
data
array [object {4}] 
必需
roomId
integer 
必需
roomName
string 
必需
readMessage
array [object {5}] 
必需
type
integer 
必需
示例
{
    "code": 200,
    "msg": "success",
    "data": [
        {
            "roomId": 1,
            "roomName": "pig",
            "readMessage": [
                {
                    "id": 1863111697911382017,
                    "roomId": 1,
                    "sendUserId": 2,
                    "content": "怎么没有信息了",
                    "sendTime": "2024-12-01T14:43:38"
                },
                {
                    "id": 1863111733600714753,
                    "roomId": 1,
                    "sendUserId": 2,
                    "content": "挺好",
                    "sendTime": "2024-12-01T14:43:47"
                },
                {
                    "id": 1863111771722743810,
                    "roomId": 1,
                    "sendUserId": 2,
                    "content": "能正常用吗",
                    "sendTime": "2024-12-01T14:43:56"
                },
                {
                    "id": 1863111778475573249,
                    "roomId": 1,
                    "sendUserId": 2,
                    "content": "看看",
                    "sendTime": "2024-12-01T14:43:58"
                },
                {
                    "id": 1863111784767029250,
                    "roomId": 1,
                    "sendUserId": 2,
                    "content": "看看",
                    "sendTime": "2024-12-01T14:43:59"
                },
                {
                    "id": 1863111790823604225,
                    "roomId": 1,
                    "sendUserId": 2,
                    "content": "看看",
                    "sendTime": "2024-12-01T14:44:01"
                },
                {
                    "id": 1863111806661296130,
                    "roomId": 1,
                    "sendUserId": 2,
                    "content": "看看",
                    "sendTime": "2024-12-01T14:44:04"
                },
                {
                    "id": 1863111996742959106,
                    "roomId": 1,
                    "sendUserId": 2,
                    "content": "你说呢",
                    "sendTime": "2024-12-01T14:44:50"
                },
                {
                    "id": 1863112006817677313,
                    "roomId": 1,
                    "sendUserId": 2,
                    "content": "三姐",
                    "sendTime": "2024-12-01T14:44:52"
                },
                {
                    "id": 1863112125470343169,
                    "roomId": 1,
                    "sendUserId": 2,
                    "content": "有些动态不太行",
                    "sendTime": "2024-12-01T14:45:20"
                },
                {
                    "id": 1863112142415331330,
                    "roomId": 1,
                    "sendUserId": 2,
                    "content": "不知道为什么",
                    "sendTime": "2024-12-01T14:45:24"
                },
                {
                    "id": 1863116545457258498,
                    "roomId": 1,
                    "sendUserId": 2,
                    "content": "姐姐",
                    "sendTime": "2024-12-01T15:02:54"
                },
                {
                    "id": 1863116559550119937,
                    "roomId": 1,
                    "sendUserId": 2,
                    "content": "叫",
                    "sendTime": "2024-12-01T15:02:57"
                },
                {
                    "id": 1863118559062917122,
                    "roomId": 1,
                    "sendUserId": 2,
                    "content": "好",
                    "sendTime": "2024-12-01T15:10:54"
                },
                {
                    "id": 1863120183785291777,
                    "roomId": 1,
                    "sendUserId": 2,
                    "content": "啊?",
                    "sendTime": "2024-12-01T15:17:22"
                },
                {
                    "id": 1863120766990680066,
                    "roomId": 1,
                    "sendUserId": 2,
                    "content": "刚才",
                    "sendTime": "2024-12-01T15:19:41"
                },
                {
                    "id": 1863121323658706946,
                    "roomId": 1,
                    "sendUserId": 2,
                    "content": "的",
                    "sendTime": "2024-12-01T15:21:53"
                },
                {
                    "id": 1863121329321017346,
                    "roomId": 1,
                    "sendUserId": 2,
                    "content": "的",
                    "sendTime": "2024-12-01T15:21:55"
                },
                {
                    "id": 1863122362713636866,
                    "roomId": 1,
                    "sendUserId": 2,
                    "content": "地底下",
                    "sendTime": "2024-12-01T15:26:01"
                },
                {
                    "id": 1863122434981494785,
                    "roomId": 1,
                    "sendUserId": 2,
                    "content": "可可可可可以啦啦啦啦啦",
                    "sendTime": "2024-12-01T15:26:18"
                },
                {
                    "id": 1863122459937603586,
                    "roomId": 1,
                    "sendUserId": 2,
                    "content": "哈哈哈",
                    "sendTime": "2024-12-01T15:26:24"
                }
            ],
            "type": 1
        },
        {
            "roomId": 2,
            "roomName": "mite",
            "readMessage": [
                {
                    "id": 1863109159862534145,
                    "roomId": 2,
                    "sendUserId": 2,
                    "content": "什么勾巴群",
                    "sendTime": "2024-12-01T14:33:33"
                },
                {
                    "id": 1863109166862827521,
                    "roomId": 2,
                    "sendUserId": 2,
                    "content": "什么勾巴群",
                    "sendTime": "2024-12-01T14:33:35"
                },
                {
                    "id": 1863123591393050626,
                    "roomId": 2,
                    "sendUserId": 2,
                    "content": "什么鬼你是",
                    "sendTime": "2024-12-01T15:30:54"
                }
            ],
            "type": 1
        },
        {
            "roomId": 2,
            "roomName": "飞猪聊天室开发群",
            "readMessage": [
                {
                    "id": 1863109159862534145,
                    "roomId": 2,
                    "sendUserId": 2,
                    "content": "什么勾巴群",
                    "sendTime": "2024-12-01T14:33:33"
                },
                {
                    "id": 1863109166862827521,
                    "roomId": 2,
                    "sendUserId": 2,
                    "content": "什么勾巴群",
                    "sendTime": "2024-12-01T14:33:35"
                },
                {
                    "id": 1863123591393050626,
                    "roomId": 2,
                    "sendUserId": 2,
                    "content": "什么鬼你是",
                    "sendTime": "2024-12-01T15:30:54"
                }
            ],
            "type": 2
        }
    ]
}
上一页
搜索群聊
下一页
查询聊天室的所有用户列表
Built with