Skip to content

Commit 6a228a4

Browse files
Kauid323QianLin-Jiaxi
authored andcommitted
Create chat-background.md
1 parent 2b60be5 commit 6a228a4

1 file changed

Lines changed: 65 additions & 0 deletions

File tree

src/api/v1/chat-background.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
---
2+
title: chat-background
3+
---
4+
5+
未特别说明情况下请求域名均为 https://chat-go.jwzhd.com
6+
没写请求/响应项目表示不需要相关参数.
7+
8+
# 机器人商店banner
9+
10+
POST /v1/chat-background/edit
11+
12+
请求头:
13+
14+
|名称|必须|备注|
15+
|-----|-----|-----|
16+
|token|||
17+
18+
请求头:
19+
```JSONC
20+
{
21+
"userId": "用户id",
22+
"chatId": "群聊id", // 如果设置全部背景则填all
23+
"url": "要设置背景的文件名+拓展名"
24+
}
25+
```
26+
27+
响应头:
28+
```JSONC
29+
{
30+
"code": 1, // 请求状态码,1为正常
31+
"msg": "success" // 返回消息
32+
}
33+
```
34+
35+
## 获取背景设置列表
36+
37+
POST /v1/chat-background/list
38+
39+
请求头:
40+
41+
|名称|必须|备注|
42+
|-----|-----|-----|
43+
|token|||
44+
45+
响应头:
46+
```JSONC
47+
{
48+
"code": 1, // 请求状态码,1为正常
49+
"data": {
50+
"list": [
51+
{
52+
"id": 514, // 背景设置的id
53+
"userId": "114514", // 用户id
54+
"chatId": "all", // 聊天id,单个群聊就是正常的,如果是全部的那id就是all
55+
"imgUrl": "https://chat-img.jwznb.com/background9.webp", // 背景图片url
56+
"createTime": 1754710993, // 创建时间戳
57+
"delFlag": 0,
58+
"updateTime": 1754713160 // 更新时间戳
59+
}
60+
// ...
61+
]
62+
},
63+
"msg": "success" // 返回消息
64+
}
65+
```

0 commit comments

Comments
 (0)