Skip to content

Commit e596aeb

Browse files
Kauid323QianLin-Jiaxi
authored andcommitted
Create share.md
1 parent 15906c7 commit e596aeb

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

src/api/v1/share.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
title: share
3+
---
4+
5+
未特别说明情况下请求域名均为 https://chat-go.jwzhd.com
6+
没写请求/响应项目表示不需要相关参数.
7+
8+
## 分享链接获取群聊信息
9+
10+
POST /v1/share/info
11+
12+
请求头:
13+
14+
|名称|必须|备注|
15+
|-----|-----|-----|
16+
|token|||
17+
18+
请求体:
19+
```JSONC
20+
{
21+
"key": "9o5UKnYgLk6z", // 分享链接key(来自 https://yhfx.jwznb.com/share?key=9o5UKnYgLk6z&ts=1754730310 内key的值 )
22+
"ts": "1754730310" // 创建分享链接时间戳(ts=timestamp)
23+
}
24+
```
25+
26+
响应体:
27+
```JSONC
28+
{
29+
"code": 1, // 请求状态码,1为正常
30+
"data": {
31+
"share": {
32+
"id": 33110, // 第33110个群聊
33+
"user_id": "114514", // 用户id
34+
"chat_name": "咸料", // 分享链接会话名称
35+
"chat_type": 2, // 分享链接会话类型
36+
"chat_id": "65535", // 会话id
37+
"key": "9o5UKnYgLk6z", // 分享链接key(来自 https://yhfx.jwznb.com/share?key=9o5UKnYgLk6z&ts=1754730310 内key的值 )
38+
"create_by": "114514", // 分享链接创建者id
39+
"create_time": 1754730310, // 创建分享链接时间戳
40+
"imageUrl": "share/f1881e952b5040a846a8bb1437a8c48f", // 分享链接会话头像url
41+
"imageName": "resources/share_bg/bg1.jpg" // 图片名称
42+
}
43+
},
44+
"msg": "success" // 返回消息
45+
}
46+
```

0 commit comments

Comments
 (0)