@thinkboat/wechatjs
Version:
企业微信API SDK for Node
17 lines (13 loc) • 437 B
text/typescript
import { BaseWeChatClient } from ".."
export class BaseWeChatApi {
private client: BaseWeChatClient
constructor(client?: BaseWeChatClient) {
this.client = client
}
protected get(url: string, params?: Record<string, unknown>) {
return this.client.get(url, params)
}
protected post(url: string, data?: Record<string, unknown>) {
return this.client.post(url, data)
}
}