File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ title : search
3+ ---
4+
5+ 未特别说明情况下请求域名均为 https://chat-go.jwzhd.com
6+ 没写请求/响应项目表示不需要相关参数.
7+
8+ ### 群聊首页搜索
9+
10+ POST /v1/search/home-search
11+
12+ 请求头:
13+
14+ | 名称| 必须| 备注|
15+ | -----| -----| -----|
16+ | token| 是| 无|
17+
18+ 请求体:
19+ ``` JSONC
20+ {
21+ " word" : " 114514" // 搜索关键词
22+ }
23+ ```
24+ 响应体:
25+ ``` JSONC
26+ {
27+ " code" : 1 , // 请求状态码,1为正常
28+ " data" : {
29+ " list" : [
30+ {
31+ " title" : " 用户" , // 类型标题
32+ " list" : null // 搜索用户,没有就显示null
33+ },
34+ {
35+ " title" : " 群组" , // 类型标题
36+ " list" : [
37+ {
38+ " friendId" : " 114514" , // 群聊id
39+ " friendType" : 2 , // 识别对象类别,1-用户,2-群聊,3-机器人
40+ " nickname" : " 114514" , // 群聊名字
41+ " name" : " " ,
42+ " avatarUrl" : " https://chat-img.jwznb.com/ba7631819aaff2fc5799bbf6f279c606.jpg" , // 群聊头像url
43+ " hit" : 1
44+ }
45+ ]
46+ },
47+ {
48+ " title" : " 机器人" , // 类型标题
49+ " list" : null // 搜索机器人,没有就显示null
50+ }
51+ ]
52+ },
53+ " msg" : " success" // 返回消息
54+ }
55+ ```
You can’t perform that action at this time.
0 commit comments