This commit is contained in:
2026-04-01 10:12:52 +08:00
parent f9db706769
commit 90b290af1f
13 changed files with 999 additions and 40 deletions
+56
View File
@@ -0,0 +1,56 @@
import request from "@/utils/request";
/**
* 获取短信网关配置
*/
export function getSmsInfo() {
return request({
url: "/admin/sms/info",
method: "get",
});
}
/**
* 编辑短信网关配置
*/
export function editSmsInfo(data: any) {
return request({
url: "/admin/sms/editinfo",
method: "post",
data,
});
}
/**
* 发送测试短信(入队任务,等待网关发送)
*/
export function sendTestSms(data: any) {
return request({
url: "/admin/sms/sendtest",
method: "post",
data,
});
}
/**
* 获取短信任务列表(租户隔离)
*/
export function getSmsTaskList(params: { status?: string | number; phone?: string } = {}) {
return request({
url: "/admin/sms/taskList",
method: "get",
params,
});
}
/**
* 编辑短信任务
*/
export function editSmsTask(id: number | string, data: any) {
return request({
url: `/admin/sms/taskEdit/${id}`,
method: "post",
data,
});
}