2023-12-05 19:54:37 +08:00

104 lines
1.5 KiB
TypeScript

export interface CoolSmsConfig {
/**
* 阿里云短信配置
*/
ali: CoolSmsAliConfig;
/**
* 腾讯云短信配置
*/
tx: CoolSmsTxConfig;
/**
* 云片短信配置
*/
yp: CoolSmsYpConfig;
/**
* aws短信配置
*/
aws: CoolSmsAwsConfig;
}
export interface CoolSmsAwsConfig {
/**
* 区域
*/
region: string;
/**
* accessKeyId
*/
accessKeyId: string;
/**
* secretAccessKey
*/
secretAccessKey: string;
/**
* 扩展配置
*/
extend?: any;
}
/**
* 阿里云配置
*/
export interface CoolSmsAliConfig {
/**
* 阿里云accessKeyId
*/
accessKeyId: string;
/**
* 阿里云accessKeySecret
*/
accessKeySecret: string;
/**
* 签名,非必填,调用时可以传入
*/
signName?: string;
/**
* 模板,非必填,调用时可以传入
*/
template?: string;
}
/**
* 腾讯云配置
*/
export interface CoolSmsTxConfig {
/**
* 应用ID
*/
appId: string;
/**
* 腾讯云secretId
*/
secretId: string;
/**
* 腾讯云secretKey
*/
secretKey: string;
/**
* 签名,非必填,调用时可以传入
*/
signName?: string;
/**
* 模板,非必填,调用时可以传入
*/
template?: string;
}
/**
* 云片短信配置
*/
export interface CoolSmsYpConfig {
/**
* 云片apikey
*/
apikey: string;
/**
* 签名,非必填,调用时可以传入
*/
signName?: string;
/**
* 模板,非必填,调用时可以传入
*/
template?: string;
}