feat: 短信渠道

This commit is contained in:
2025-09-18 18:12:57 +08:00
parent 8afdb0d09e
commit e109590aea
3 changed files with 166 additions and 77 deletions

View File

@@ -56,7 +56,7 @@ export async function createSmsChannel(data: SmsChannelVO) {
// return request.put({ url: '/system/sms-channel/update', data })
// }
export async function updateSmsChannel(data: SmsChannelVO) {
return request("/system/sms-channel/create", {
return request("/system/sms-channel/update", {
method: "PUT",
data,
});
@@ -66,7 +66,7 @@ export async function updateSmsChannel(data: SmsChannelVO) {
// return request.delete({ url: '/system/sms-channel/delete?id=' + id })
// }
export async function deleteSmsChannel(id: number) {
return request("/system/sms-channel/create", {
return request("/system/sms-channel/delete", {
method: "DELETE",
params: { id },
});