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
| import { BasePlugin } from '@cool-midway/plugin-cli';
| /**
| * 阿里云短信
| */
| export declare class CoolPlugin extends BasePlugin {
| /**
| * 发送
| * @param phone 手机号数组 最多不要超过200个手机号
| * @param params 参数数组 短信模板参数, 例如: {code: '1234', product: 'yours'}
| * @param config 配置 signName 签名 template 模板 options 其他配置 countryCode 国家区号 默认 +86
| * @returns 返回结果
| */
| send(
| phone: string[],
| params: {
| [key: string]: any;
| },
| config?: {
| signName: string;
| template: string;
| countryCode?: string;
| options?: {
| [key: string]: any;
| };
| },
| ): Promise<any>;
| }
| export declare const Plugin: typeof CoolPlugin;
|
|