diff --git a/deliver-front/vue/src/api/channel.ts b/deliver-front/vue/src/api/channel.ts new file mode 100644 index 0000000000000000000000000000000000000000..7092cf1040664257cfda3239d08c3c73441a3aa4 --- /dev/null +++ b/deliver-front/vue/src/api/channel.ts @@ -0,0 +1,41 @@ +import request from '@/utils/request' +import type { searchMessage, addTemp, updateTemp } from '@/views/Channel/type' +export async function getAppInfo(data: searchMessage): Promise { + return await request({ + url: '/app/search', + method: 'post', + data + }) +} + +export async function addAppItem(data: addTemp): Promise { + return await request({ + url: '/app/save', + method: 'post', + data + }) +} + +export async function deleteAppInfo(data: { ids: number[] }): Promise { + return await request({ + url: '/app/deleteByIds', + method: 'post', + data + }) +} + +export async function updateAppStatus(data: { appId: number; appStatus: number }): Promise { + return await request({ + url: '/app/updateStatusById', + method: 'post', + data + }) +} + +export async function updateAppItem(data: updateTemp): Promise { + return await request({ + url: '/app/updateById', + method: 'post', + data + }) +} diff --git a/deliver-front/vue/src/views/Channel/components/addTemplate.vue b/deliver-front/vue/src/views/Channel/components/addTemplate.vue index 6e83255f4f694dc5aab6b4fe4dec44db4484d64f..c7157bc9dd7f595a9993925a533f7fa831bb50dc 100644 --- a/deliver-front/vue/src/views/Channel/components/addTemplate.vue +++ b/deliver-front/vue/src/views/Channel/components/addTemplate.vue @@ -1,10 +1,9 @@