File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -453,3 +453,51 @@ POST /v1/group-tag/create
453453 " msg" : " success" // 返回状态消息
454454}
455455```
456+
457+ ## 搜索推荐群聊
458+
459+ 请求头:
460+ | 名称| 必须| 备注|
461+ | ---| ---| ---|
462+ | token| 是| 必须为群聊管理员token|
463+
464+ 请求体:
465+ ``` JSONC
466+ {
467+ " categoryId" : 22 , // 群聊分类id
468+ " keyword" : " 114514" // 搜索关键词
469+ }
470+ ```
471+
472+ 响应体:
473+ ``` JSONC
474+ {
475+ " code" : 1 , // 请求状态码,1为正常
476+ " data" : {
477+ " groups" : [
478+ {
479+ " id" : 9910 ,
480+ " groupId" : " 114514" ,
481+ " name" : " 这是群聊名字" ,
482+ " introduction" : " 这是个群聊介绍" ,
483+ " createBy" : " 114514" , // 创建者id
484+ " createTime" : 1754113069 , // 创建时间戳
485+ " avatarId" : 43821 , // 头像id
486+ " del_flag" : 0 ,
487+ " avatarUrl" : " https://chat-img.jwznb.com/3d805b635cc54829e461102ab315381b.gif" , // 群头像url
488+ " headcount" : 16 , // 群聊人数
489+ " readHistory" : 1 , // 是否开启新成员查看消息历史记录(1为开启,0为关闭)
490+ " alwaysAgree" : 1 , // 是否直接进群(1为开启,0为关闭)
491+ " categoryId" : 22 , // 群聊分类id
492+ " category" : " 技术-IT/互联网" , // 群聊分类名称
493+ " private" : 0 , // 群聊是否私有(1为开启,0为关闭)
494+ " banId" : 0 , //
495+ " gag" : 0 , // 是否禁言(1为开启,0为关闭)
496+ " gagBy" : " " , // 被禁言的id
497+ " msgTypeLimit" : " " // 消息类型限制
498+ },
499+ // ...
500+ ]
501+ },
502+ " msg" : " success" // 返回状态消息
503+ }
You can’t perform that action at this time.
0 commit comments