mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2026-01-08 04:38:12 +00:00
短信提示
This commit is contained in:
parent
adf67f2c52
commit
f67c7cb0f0
@ -19,6 +19,8 @@ export interface ModuleConfig {
|
||||
}
|
||||
|
||||
export interface CoolConfig {
|
||||
/** 短信 */
|
||||
sms: CoolSmsConfig,
|
||||
/** 是否自动导入数据库 */
|
||||
initDB?: boolean;
|
||||
// 实体配置
|
||||
@ -300,3 +302,86 @@ export interface CoolIotConfig {
|
||||
/** 服务配置 */
|
||||
serve?: AedesOptions;
|
||||
}
|
||||
|
||||
|
||||
export interface CoolSmsConfig {
|
||||
/**
|
||||
* 阿里云短信配置
|
||||
*/
|
||||
ali: CoolSmsAliConfig;
|
||||
/**
|
||||
* 腾讯云短信配置
|
||||
*/
|
||||
tx: CoolTxConfig;
|
||||
/**
|
||||
* 云片短信配置
|
||||
*/
|
||||
yp: CoolYpConfig;
|
||||
}
|
||||
|
||||
/**
|
||||
* 阿里云配置
|
||||
*/
|
||||
export interface CoolSmsAliConfig {
|
||||
/**
|
||||
* 阿里云accessKeyId
|
||||
*/
|
||||
accessKeyId: string;
|
||||
/**
|
||||
* 阿里云accessKeySecret
|
||||
*/
|
||||
accessKeySecret: string;
|
||||
/**
|
||||
* 签名,非必填,调用时可以传入
|
||||
*/
|
||||
signName?: string;
|
||||
/**
|
||||
* 模板,非必填,调用时可以传入
|
||||
*/
|
||||
template?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 腾讯云配置
|
||||
*/
|
||||
export interface CoolTxConfig {
|
||||
/**
|
||||
* 应用ID
|
||||
*/
|
||||
appId: string;
|
||||
/**
|
||||
* 腾讯云secretId
|
||||
*/
|
||||
secretId: string;
|
||||
/**
|
||||
* 腾讯云secretKey
|
||||
*/
|
||||
secretKey: string;
|
||||
/**
|
||||
* 签名,非必填,调用时可以传入
|
||||
*/
|
||||
signName?: string;
|
||||
/**
|
||||
* 模板,非必填,调用时可以传入
|
||||
*/
|
||||
template?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 云片短信配置
|
||||
*/
|
||||
export interface CoolYpConfig {
|
||||
/**
|
||||
* 云片apikey
|
||||
*/
|
||||
apikey: string;
|
||||
/**
|
||||
* 签名,非必填,调用时可以传入
|
||||
*/
|
||||
signName?: string;
|
||||
/**
|
||||
* 模板,非必填,调用时可以传入
|
||||
*/
|
||||
template?: string;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user