wangzhibo
昨天 6484c72be4230e89ab45dc928250de9d5f3326ca
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import { BasePlugin } from '@cool-midway/plugin-cli';
import {
  OfficialAccount,
  MiniApp,
  Pay,
  OpenPlatform,
  Work,
  OpenWork,
} from 'node-easywechat';
/**
 * 微信
 */
export declare class CoolPlugin extends BasePlugin {
  /**
   * 公众号
   * @param config
   * @returns
   */
  OfficialAccount(config?: any): Promise<any>;
  /**
   * 小程序
   * @param config
   * @returns
   */
  MiniApp(config?: any): Promise<any>;
  /**
   * 支付
   * @param config
   * @returns
   */
  Pay(config?: any): Promise<any>;
  /**
   * 开放平台
   * @param config
   * @returns
   */
  OpenPlatform(config?: any): Promise<any>;
  /**
   * 企业微信
   * @param config
   * @returns
   */
  Work(config?: any): Promise<any>;
  /**
   * 企业微信开放平台
   * @param config
   * @returns
   */
  OpenWork(config?: any): Promise<any>;
  /**
   * 设置缓存
   * @param app
   */
  setCache(
    app: OfficialAccount | MiniApp | Pay | OpenPlatform | Work | OpenWork,
  ): Promise<void>;
}
export declare const Plugin: typeof CoolPlugin;