Compare commits

...

2 Commits

Author SHA1 Message Date
6255af3619 chore(release): publish
- @egg/net-tool@1.19.0
2024-11-29 07:31:50 +00:00
e57d007f9c feat(lark-msg-tool): 更新消息发送方法以支持返回消息ID
All checks were successful
/ release (push) Successful in 24s
2024-11-29 07:31:29 +00:00
4 changed files with 12 additions and 3 deletions

2
package-lock.json generated
View File

@ -12394,7 +12394,7 @@
},
"packages/net-tool": {
"name": "@egg/net-tool",
"version": "1.18.0",
"version": "1.19.0",
"license": "ISC",
"dependencies": {
"@egg/logger": "^1.6.0",

View File

@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [1.19.0](http://yingbo.im:3000/zhaoyingbo/egg_tools/compare/@egg/net-tool@1.18.0...@egg/net-tool@1.19.0) (2024-11-29)
### Features
- **lark-msg-tool:** 更新消息发送方法以支持返回消息ID ([e57d007](http://yingbo.im:3000/zhaoyingbo/egg_tools/commits/e57d007f9c96edd69410b17de6405bc72b8b2e86))
# [1.18.0](http://yingbo.im:3000/zhaoyingbo/egg_tools/compare/@egg/net-tool@1.17.0...@egg/net-tool@1.18.0) (2024-11-29)
### Features

View File

@ -1,6 +1,6 @@
{
"name": "@egg/net-tool",
"version": "1.18.0",
"version": "1.19.0",
"description": "Net Tools for Egg projects",
"type": "module",
"main": "src/index.ts",

View File

@ -116,7 +116,10 @@ class LarkMessageService extends LarkBaseService {
if (msgType === "text" && !content.includes('"text"')) {
content = JSON.stringify({ text: content })
}
return this.post<Lark.BaseRes>(path, { msg_type: msgType, content })
return this.post<Lark.BaseRes<{ message_id: string }>>(path, {
msg_type: msgType,
content,
})
}
/**