Compare commits

...

2 Commits

Author SHA1 Message Date
39f6bfd7f5 chore(release): publish
- @egg/lark-msg-tool@1.7.0
2024-10-12 03:34:49 +00:00
64f84e53a2 feat(lark-msg): 更新LarkBody类属性类型
All checks were successful
/ release (push) Successful in 23s
2024-10-12 03:34:27 +00:00
4 changed files with 21 additions and 11 deletions

2
package-lock.json generated
View File

@ -12122,7 +12122,7 @@
},
"packages/lark-msg-tool": {
"name": "@egg/lark-msg-tool",
"version": "1.6.3",
"version": "1.7.0",
"license": "ISC",
"dependencies": {
"@egg/logger": "^1.4.3",

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.7.0](http://yingbo.im:3000/zhaoyingbo/egg_tools/compare/@egg/lark-msg-tool@1.6.3...@egg/lark-msg-tool@1.7.0) (2024-10-12)
### Features
- **lark-msg:** 更新LarkBody类属性类型 ([64f84e5](http://yingbo.im:3000/zhaoyingbo/egg_tools/commits/64f84e53a2c0cda24961bd15691c929c4ebcfbf0))
## [1.6.3](http://yingbo.im:3000/zhaoyingbo/egg_tools/compare/@egg/lark-msg-tool@1.6.2...@egg/lark-msg-tool@1.6.3) (2024-10-12)
**Note:** Version bump only for package @egg/lark-msg-tool

View File

@ -1,6 +1,6 @@
{
"name": "@egg/lark-msg-tool",
"version": "1.6.3",
"version": "1.7.0",
"description": "Lark Msg Tools for Egg projects",
"type": "module",
"main": "src/index.ts",

View File

@ -4,16 +4,20 @@ class LarkBody {
protected body: LarkEvent.Data | LarkAction.Data
public isEventMsg: boolean = false
public isActionMsg: boolean = false
public msgType?: string
public userId?: string
public msgType?: LarkEvent.Message["message_type"]
public userId?: LarkEvent.UserIdInfo["user_id"]
public msgText: string = ""
public chatType?: string
public mentions?: any
public actionType?: string
public actionValue?: any
public actionOption?: any
public chatId: string = ""
public messageId: string = ""
public chatType?: LarkEvent.Message["chat_type"]
public mentions?: LarkEvent.Mention[]
public actionType?: LarkAction.Data["action"]["tag"]
public actionValue?: LarkAction.Data["action"]["value"]
public actionOption?: LarkAction.Data["action"]["option"]
public chatId:
| LarkEvent.Message["chat_id"]
| LarkAction.Data["open_chat_id"] = ""
public messageId:
| LarkEvent.Message["message_id"]
| LarkAction.Data["open_message_id"] = ""
/**
*