文档
测试

获取房间历史聊天记录

POST
http://192.168.100.9:8801/room/getHistoryChatMessage

请求参数

参数名
类型
描述
必填
groupId
string
示例:1460149603166187520
必填
index
int
示例:1
必填
size
int
示例:10
必填

响应参数

参数名
类型
描述
必填
code
int
示例:200
必填
message
string
示例:数据查询成功!
必填
data
array
数据列表
必填
deviceType
object
示例:null
必填
deviceSoftware
object
示例:null
必填
groupId
string
示例:1460149603166187520
必填
userId
int
示例:1416925916168192000
必填
senderName
string
示例:学生1
必填
senderAvatar
string
示例:api/attachments/1437257914875117568/image
必填
content
string
示例:646464
必填
type
int
示例:1
必填
chatTime
int
示例:1638346856570
必填
userType
int
示例:1
必填
msgId
string
示例:a636072f-c0a2-45d3-8180-cb4d194614f0
必填
readUnread
int
示例:1
必填
status
int
消息状态:1,正常,2:已撤回 示例:1
必填
offTeacherPcOnline
int
示例:0
必填
offOnline
int
示例:0
必填
key
string
示例:1460149603166187520_GROUP_CHAT
必填
path
object
示例:null
必填

说明 / 示例

{ "code": 200, "message": "数据查询成功!", "data": [ { "deviceType": null, "deviceSoftware": null, "groupId": "1405809111755210752", "userId": 1194511167955927041, "senderName": "李太白", "senderAvatar": "556666", "content": "你好", "type": 1,(消息类型:1:文字,2:语音,3:图片,4:链接) "chatTime": 1624006363462, "userType": null, "key": "1405809111755210752_GROUP_CHAT", "msgId": "readUnread",0已读,1未读 } ], "path": null }