UNPKG

@iot9x.com/nestjs-ucpaas-sms

Version:

nestjs 云之讯平台短信集成插件

20 lines (19 loc) 982 B
import { HttpService } from '@nestjs/axios'; import { UcpaasModuleOptions } from '../interfaces/options.interface'; import { RegexUtil } from '../utils/regex.util'; import { SendVariableSmsParams } from '../interfaces/params/send/send-variable-sms-params.interface'; import { SendVariableSmsResponse } from '../interfaces/response/sms/send-variable-sms.response.interface'; export declare class UcpaasSendService { private readonly options; private readonly httpService; private readonly regexUtil; constructor(options: UcpaasModuleOptions, httpService: HttpService, regexUtil: RegexUtil); /** * 发送变量模板短信,支持向多用户发送 * @param templateId 云之讯平台短信模板ID * @param mobileList 接收人手机号码列表 * @param params 附加参数 * @returns 短信发送结果 */ variable(templateId: string, mobileList: string[], params?: SendVariableSmsParams): Promise<SendVariableSmsResponse>; }