import { EntityDict } from '../oak-app-domain'; import { BRC } from '../types/RuntimeCxt'; /** * 短信发送及模板同步 */ export default interface Sms { name: string; /** * 是否支持模板同步 */ syncTemplate(options: { systemId: string; pageIndex?: number; pageSize?: number; international?: 0 | 1; }, context: BRC): Promise<{ templateName: string; templateCode: string; templateContent: string; }[]>; /** * 短信发送 */ sendSms(params: { mobile: string; templateParam?: Record; smsTemplate: Partial; }, context: BRC): Promise<{ success: boolean; res: any; }>; }