From fa32194772b8135a138b9c4dce2669e886277a10 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 25 Mar 2023 00:41:06 +0800 Subject: [PATCH] =?UTF-8?q?Vue3=20=E9=87=8D=E6=9E=84=EF=BC=9AREVIEW=20?= =?UTF-8?q?=E7=9F=AD=E4=BF=A1=E6=B8=A0=E9=81=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/sms/smsChannel/index.ts | 23 +---- .../channel/{form.vue => SmsChannelForm.vue} | 64 +++++++------ src/views/system/sms/channel/index.vue | 93 +++++++------------ 3 files changed, 71 insertions(+), 109 deletions(-) rename src/views/system/sms/channel/{form.vue => SmsChannelForm.vue} (64%) diff --git a/src/api/system/sms/smsChannel/index.ts b/src/api/system/sms/smsChannel/index.ts index ee0e6167..f335628f 100644 --- a/src/api/system/sms/smsChannel/index.ts +++ b/src/api/system/sms/smsChannel/index.ts @@ -12,21 +12,8 @@ export interface SmsChannelVO { createTime: Date } -export interface SmsChannelListVO { - id: number - code: string - signature: string -} - -export interface SmsChannelPageReqVO extends PageParam { - signature?: string - code?: string - status?: number - createTime?: Date[] -} - // 查询短信渠道列表 -export const getSmsChannelPageApi = (params: SmsChannelPageReqVO) => { +export const getSmsChannelPage = (params: PageParam) => { return request.get({ url: '/system/sms-channel/page', params }) } @@ -36,21 +23,21 @@ export function getSimpleSmsChannelList() { } // 查询短信渠道详情 -export const getSmsChannelApi = (id: number) => { +export const getSmsChannel = (id: number) => { return request.get({ url: '/system/sms-channel/get?id=' + id }) } // 新增短信渠道 -export const createSmsChannelApi = (data: SmsChannelVO) => { +export const createSmsChannel = (data: SmsChannelVO) => { return request.post({ url: '/system/sms-channel/create', data }) } // 修改短信渠道 -export const updateSmsChannelApi = (data: SmsChannelVO) => { +export const updateSmsChannel = (data: SmsChannelVO) => { return request.put({ url: '/system/sms-channel/update', data }) } // 删除短信渠道 -export const deleteSmsChannelApi = (id: number) => { +export const deleteSmsChannel = (id: number) => { return request.delete({ url: '/system/sms-channel/delete?id=' + id }) } diff --git a/src/views/system/sms/channel/form.vue b/src/views/system/sms/channel/SmsChannelForm.vue similarity index 64% rename from src/views/system/sms/channel/form.vue rename to src/views/system/sms/channel/SmsChannelForm.vue index 9c3881d8..3145af91 100644 --- a/src/views/system/sms/channel/form.vue +++ b/src/views/system/sms/channel/SmsChannelForm.vue @@ -1,13 +1,19 @@