diff --git a/src/apis/open/app.ts b/src/apis/open/app.ts deleted file mode 100644 index a5ec5fb..0000000 --- a/src/apis/open/app.ts +++ /dev/null @@ -1,46 +0,0 @@ -import type * as T from './type' -import http from '@/utils/http' - -export type * from './type' - -const BASE_URL = '/open/app' - -/** @desc 查询应用列表 */ -export function listApp(query: T.AppPageQuery) { - return http.get>(`${BASE_URL}`, query) -} - -/** @desc 查询应用详情 */ -export function getApp(id: string) { - return http.get(`${BASE_URL}/${id}`) -} - -/** @desc 新增应用 */ -export function addApp(data: any) { - return http.post(`${BASE_URL}`, data) -} - -/** @desc 修改应用 */ -export function updateApp(data: any, id: string) { - return http.put(`${BASE_URL}/${id}`, data) -} - -/** @desc 删除应用 */ -export function deleteApp(id: string) { - return http.del(`${BASE_URL}/${id}`) -} - -/** @desc 导出应用 */ -export function exportApp(query: T.AppQuery) { - return http.download(`${BASE_URL}/export`, query) -} - -/** @desc 获取密钥 */ -export function getAppSecret(id: string) { - return http.get(`${BASE_URL}/${id}/secret`) -} - -/** @desc 重置密钥 */ -export function resetAppSecret(id: string) { - return http.patch(`${BASE_URL}/${id}/secret`) -} diff --git a/src/apis/open/type.ts b/src/apis/open/type.ts deleted file mode 100644 index 059676c..0000000 --- a/src/apis/open/type.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** 应用类型 */ -export interface AppResp { - id: string - name: string - accessKey: string - secretKey: string - expireTime: string - description: string - status: 1 | 2 - createUserString: string - createTime: string - updateUserString: string - updateTime: string -} - -export interface AppQuery { - description?: string - sort: Array -} - -export interface AppPageQuery extends AppQuery, PageQuery {} diff --git a/src/views/open/app/AppAddModal.vue b/src/views/open/app/AppAddModal.vue deleted file mode 100644 index eb46b04..0000000 --- a/src/views/open/app/AppAddModal.vue +++ /dev/null @@ -1,123 +0,0 @@ - - - diff --git a/src/views/open/app/AppDetailDrawer.vue b/src/views/open/app/AppDetailDrawer.vue deleted file mode 100644 index 75f992a..0000000 --- a/src/views/open/app/AppDetailDrawer.vue +++ /dev/null @@ -1,44 +0,0 @@ - - - - - diff --git a/src/views/open/app/index.vue b/src/views/open/app/index.vue deleted file mode 100644 index 75b3038..0000000 --- a/src/views/open/app/index.vue +++ /dev/null @@ -1,222 +0,0 @@ - - - - -