UNPKG

@iot9x.com/nestjs-ucpaas-sms

Version:

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

37 lines (36 loc) 1.13 kB
import { BaseResponse } from '../base.response.interface'; interface SendSmsResponseData { /** 短信总计费条数 */ total_fee: number; /** * 用户透传ID,随状态报告返回 * @description 此部分是请求是传入的 */ uid?: string; /** * 每个手机号发送的详细情况 * @description code为0才有 */ data: [ { /** * 成功发送的短信计费条数 * @description 计费规则:70个字一条,超出70个字时按每67字一条计费(英文按字母个数计算) */ fee: number; /** * 接收短信的手机号码 * @example 18088888888 */ mobile: string; /** * 短信标识符(用于匹配状态报告),一个手机号对应一个sid * @example 8cc440aceb0e36d6847f69758537eb8c */ sid: string; } ]; } /** 发送变量模板返回结果 */ export declare type SendVariableSmsResponse = BaseResponse<SendSmsResponseData>; export {};