Skip to content

Commit d437e64

Browse files
Kauid323QianLin-Jiaxi
authored andcommitted
Update share.md
1 parent f698ed7 commit d437e64

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

src/api/v1/share.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,38 @@ POST /v1/share/info
4646
"msg": "success" // 返回消息
4747
}
4848
```
49+
50+
## 创建分享链接
51+
52+
POST /v1/share/create
53+
54+
请求头:
55+
56+
|名称|必须|备注|
57+
|-----|-----|-----|
58+
|token|||
59+
60+
请求体:
61+
62+
```JSONC
63+
{
64+
"chatId": "会话id",
65+
"chatType": 2, // 会话类型,1-用户,2-群聊,3-机器人
66+
"chatName": "会话名称"
67+
}
68+
```
69+
70+
响应体:
71+
72+
```JSONC
73+
{
74+
"code": 1, // 请求状态码,1为正常
75+
"data": {
76+
"imageKey": "share/897c53c47d767bcde2e0c65367b59871", // 图片key
77+
"key": "AzN8zhJXPzyd", // 分享链接的key
78+
"shareUrl": "https://yhfx.jwznb.com/", // 分享开头的url
79+
"ts": 1754882929 // 分享链接创建时间戳
80+
},
81+
"msg": "success" // 返回消息
82+
}
83+
```

0 commit comments

Comments
 (0)