Compare commits
2 Commits
@egg/net-t
...
@egg/net-t
Author | SHA1 | Date | |
---|---|---|---|
6253098bfb | |||
b141a4c50e |
2
package-lock.json
generated
2
package-lock.json
generated
@ -12394,7 +12394,7 @@
|
||||
},
|
||||
"packages/net-tool": {
|
||||
"name": "@egg/net-tool",
|
||||
"version": "1.14.1",
|
||||
"version": "1.14.2",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@egg/logger": "^1.4.4",
|
||||
|
@ -3,6 +3,10 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [1.14.2](http://yingbo.im:3000/zhaoyingbo/egg_tools/compare/@egg/net-tool@1.14.1...@egg/net-tool@1.14.2) (2024-11-25)
|
||||
|
||||
**Note:** Version bump only for package @egg/net-tool
|
||||
|
||||
## [1.14.1](http://yingbo.im:3000/zhaoyingbo/egg_tools/compare/@egg/net-tool@1.14.0...@egg/net-tool@1.14.1) (2024-11-25)
|
||||
|
||||
### Bug Fixes
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@egg/net-tool",
|
||||
"version": "1.14.1",
|
||||
"version": "1.14.2",
|
||||
"description": "Net Tools for Egg projects",
|
||||
"type": "module",
|
||||
"main": "src/index.ts",
|
||||
|
@ -28,14 +28,12 @@ class LarkService {
|
||||
appSecret,
|
||||
requestId,
|
||||
})
|
||||
this.drive = new LarkDriveService(() => this.auth.getAppAuth(), requestId)
|
||||
this.message = new LarkMessageService(
|
||||
() => this.auth.getAppAuth(),
|
||||
requestId
|
||||
)
|
||||
this.user = new LarkUserService(() => this.auth.getAppAuth(), requestId)
|
||||
this.sheet = new LarkSheetService(() => this.auth.getAppAuth(), requestId)
|
||||
this.chat = new LarkChatService(() => this.auth.getAppAuth(), requestId)
|
||||
const getAppAuth = () => this.auth.getAppAuth()
|
||||
this.drive = new LarkDriveService(getAppAuth, requestId)
|
||||
this.message = new LarkMessageService(getAppAuth, requestId)
|
||||
this.user = new LarkUserService(getAppAuth, requestId)
|
||||
this.sheet = new LarkSheetService(getAppAuth, requestId)
|
||||
this.chat = new LarkChatService(getAppAuth, requestId)
|
||||
this.requestId = requestId
|
||||
}
|
||||
}
|
||||
|
12
test/lark.ts
Normal file
12
test/lark.ts
Normal file
@ -0,0 +1,12 @@
|
||||
import { LarkService } from "../packages/net-tool/src/index"
|
||||
|
||||
const larkService = new LarkService({
|
||||
appId: "appId",
|
||||
appSecret: "appSecret",
|
||||
requestId: "requestId",
|
||||
})
|
||||
|
||||
larkService.user
|
||||
.code2Login("")
|
||||
.then((res) => console.log(res))
|
||||
.catch((err) => console.error(err))
|
Loading…
x
Reference in New Issue
Block a user