From 0565894ebaf308d03e1dbfa38b0081cdfd4b79b6 Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期五, 10 十月 2025 13:32:19 +0800 Subject: [PATCH] feat: 短信 --- src/services/api/sms.ts | 30 ++++++++++++++++++++++++++++++ 1 files changed, 30 insertions(+), 0 deletions(-) diff --git a/src/services/api/sms.ts b/src/services/api/sms.ts index 2b69aab..50c798e 100644 --- a/src/services/api/sms.ts +++ b/src/services/api/sms.ts @@ -25,3 +25,33 @@ ...(options || {}), }); } + +/** 闃块噷浜戠煭淇″钩鍙板洖浼犻�氱煡 POST /api/common/sms/smsAliyunNotify */ +export async function smsAliyunNotify( + body: API.SmsAliyunNotifyCommandItem[], + options?: API.RequestConfig +) { + return request<API.SmsAliyunNotifyCommandResult>('/api/common/sms/smsAliyunNotify', { + method: 'POST', + headers: { + 'Content-Type': 'application/json-patch+json', + }, + data: body, + ...(options || {}), + }); +} + +/** 璇氱珛涓氱煭淇″钩鍙板洖浼犻�氱煡 POST /api/common/sms/smsChengLiYeNotify */ +export async function smsChengLiYeNotify( + body: API.SmsChengLiYeNotifyCommand, + options?: API.RequestConfig +) { + return request<boolean>('/api/common/sms/smsChengLiYeNotify', { + method: 'POST', + headers: { + 'Content-Type': 'application/json-patch+json', + }, + data: body, + ...(options || {}), + }); +} -- Gitblit v1.9.1