Compare commits
2 Commits
@egg/net-t
...
@egg/net-t
Author | SHA1 | Date | |
---|---|---|---|
cf8f7b9f55 | |||
3deec366c1 |
2
package-lock.json
generated
2
package-lock.json
generated
@ -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",
|
||||
|
@ -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
|
||||
|
@ -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",
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user