Compare commits

...

2 Commits

Author SHA1 Message Date
cf8f7b9f55 chore(release): publish
- @egg/net-tool@1.18.0
2024-11-29 07:27:37 +00:00
3deec366c1 feat(lark-msg-tool): 添加回复卡片消息的方法
All checks were successful
/ release (push) Successful in 24s
2024-11-29 07:27:15 +00:00
4 changed files with 17 additions and 2 deletions

2
package-lock.json generated
View File

@ -12394,7 +12394,7 @@
},
"packages/net-tool": {
"name": "@egg/net-tool",
"version": "1.17.0",
"version": "1.18.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.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
- **lark-msg-tool:** 添加回复卡片消息的方法 ([3deec36](http://yingbo.im:3000/zhaoyingbo/egg_tools/commits/3deec366c1b654095d9a7e64ce136ea9ba91871c))
# 1.17.0 (2024-11-29)
### Features

View File

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

View File

@ -118,6 +118,15 @@ class LarkMessageService extends LarkBaseService {
}
return this.post<Lark.BaseRes>(path, { msg_type: msgType, content })
}
/**
*
* @param messageId ID
* @param content
*/
async replyCard(messageId: string, content: string | Record<string, any>) {
return this.reply(messageId, "interactive", content)
}
}
export default LarkMessageService