Skip to content

Commit 055d7a8

Browse files
Kauid323QianLin-Jiaxi
authored andcommitted
Update community.md
1 parent 8e17964 commit 055d7a8

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

src/api/v1/community.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,3 +317,47 @@ POST /v1/community/ba/info
317317
"msg": "success" // 返回消息
318318
}
319319
```
320+
321+
## 获取分区列表
322+
323+
POST /v1/community/ba/following-ba-list
324+
325+
请求头:
326+
327+
|名称|必须|备注|
328+
|-----|-----|-----|
329+
|token|||
330+
331+
请求体:
332+
```JSONC
333+
{
334+
"typ": 2, // 类型
335+
"size": 20, // 排序
336+
"page": 1 // 页数
337+
}
338+
```
339+
340+
响应体:
341+
```JSONC
342+
{
343+
"code": 1, // 请求状态码,1为正常
344+
"data": {
345+
"ba": [
346+
{
347+
"id": 41, // 分区id
348+
"name": "云湖", // 分区名字
349+
"avatar": "https://chat-img2.jwznb.com/FoHHKnX-QNuD33-NnGWlq74xkgpg.webp", // 分区头像url
350+
"delTime": 0, // 删除时间
351+
"createTime": 1665233353, // 创建时间
352+
"lastActive": 1754474179, // 上次活跃时间
353+
"memberNum": 1053, // 该分区的成员数
354+
"postNum": 9656, // 该分区的文章数
355+
"groupNum": 55, // 该分区绑定的群聊数
356+
"createTimeText": "2022-10-08 20:49:13" // 分区创建时间
357+
}
358+
// ...
359+
],
360+
"total": 11 // 总共的分区数量(共11个)
361+
},
362+
"msg": "success" // 返回消息
363+
}

0 commit comments

Comments
 (0)