File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,3 +56,53 @@ POST /v1/search/home-search
5656 " msg" : " success" // 返回消息
5757}
5858```
59+
60+ ## 聊天记录搜索
61+
62+ POST /v1/search/chat-search
63+
64+ 请求头:
65+
66+ | 名称| 必须| 备注|
67+ | -----| -----| -----|
68+ | token| 是| 无|
69+
70+ 请求体:
71+
72+ ``` JSONC
73+ {
74+ " word" : " 3598257" , // 搜索词
75+ " chatId" : " test" , // 对象ID
76+ " chatType" : 2 , // 对象类别
77+ " type" : " all" , // 信息类别,1-文本,3-markdown,4-文件,6-文章,7-表情包,8-html
78+ " size" : 30 , //
79+ " time" : 9999999999999 , // 涵盖信息时间戳,只返回此时间戳内的信息
80+ " direction" : 1 // 未知
81+ }
82+ ```
83+
84+ 响应体:
85+
86+ ``` JSONC
87+ {
88+ " code" : 1 , // 请求状态码,1为正常
89+ " data" : {
90+ " list" : [
91+ {
92+ " id" : " 123" , // 信息ID
93+ " sequence" : 123 , // 第几条信息
94+ " chatId" : " 123" , // 信息所处对象ID
95+ " chatType" : 0 , // 未知,不是信息所处对象类别
96+ " name" : " 测试发送者名称" , // 发送者名称
97+ " avatarUrl" : " https://..." ,
98+ " content" : " 测试信息文本" , // 信息文本
99+ " type" : " 1" , // 信息类别,1-文本,3-markdown,4-文件,6-文章,7-表情包,8-html
100+ " time" : 123123123123 , // 发送时间
101+ " timeText" : " 1231-23-12 31:23:00" // 发送时间戳
102+ }
103+ // ...
104+ ]
105+ },
106+ " msg" : " success" // 返回消息
107+ }
108+ ```
You can’t perform that action at this time.
0 commit comments