From 98bf5a102ee1533068b6ce5b2aa6cde2deb70c1b Mon Sep 17 00:00:00 2001 From: YunaiV Date: Mon, 22 Apr 2024 19:42:56 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=A7=BB=E9=99=A4=E3=80=91=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E7=A0=81=E7=9A=84=E7=AE=A1=E7=90=86=EF=BC=8C=E7=AE=80?= =?UTF-8?q?=E5=8C=96=E9=A1=B9=E7=9B=AE=E7=9A=84=E5=A4=8D=E6=9D=82=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/infra/codegen/index.ts | 123 ---------- src/views/system/errorCode/ErrorCodeForm.vue | 112 --------- src/views/system/errorCode/index.vue | 228 ------------------- 3 files changed, 463 deletions(-) delete mode 100644 src/api/infra/codegen/index.ts delete mode 100644 src/views/system/errorCode/ErrorCodeForm.vue delete mode 100644 src/views/system/errorCode/index.vue diff --git a/src/api/infra/codegen/index.ts b/src/api/infra/codegen/index.ts deleted file mode 100644 index feff57a2..00000000 --- a/src/api/infra/codegen/index.ts +++ /dev/null @@ -1,123 +0,0 @@ -import request from '@/config/axios' - -export type CodegenTableVO = { - id: number - tableId: number - isParentMenuIdValid: boolean - dataSourceConfigId: number - scene: number - tableName: string - tableComment: string - remark: string - moduleName: string - businessName: string - className: string - classComment: string - author: string - createTime: Date - updateTime: Date - templateType: number - parentMenuId: number -} - -export type CodegenColumnVO = { - id: number - tableId: number - columnName: string - dataType: string - columnComment: string - nullable: number - primaryKey: number - autoIncrement: boolean - ordinalPosition: number - javaType: string - javaField: string - dictType: string - example: string - createOperation: number - updateOperation: number - listOperation: number - listOperationCondition: string - listOperationResult: number - htmlType: string -} - -export type DatabaseTableVO = { - name: string - comment: string -} - -export type CodegenDetailVO = { - table: CodegenTableVO - columns: CodegenColumnVO[] -} - -export type CodegenPreviewVO = { - filePath: string - code: string -} - -export type CodegenUpdateReqVO = { - table: CodegenTableVO | any - columns: CodegenColumnVO[] -} - -export type CodegenCreateListReqVO = { - dataSourceConfigId: number - tableNames: string[] -} - -// 查询列表代码生成表定义 -export const getCodegenTableList = (dataSourceConfigId: number) => { - return request.get({ url: '/infra/codegen/table/list?dataSourceConfigId=' + dataSourceConfigId }) -} - -// 查询列表代码生成表定义 -export const getCodegenTablePage = (params: PageParam) => { - return request.get({ url: '/infra/codegen/table/page', params }) -} - -// 查询详情代码生成表定义 -export const getCodegenTable = (id: number) => { - return request.get({ url: '/infra/codegen/detail?tableId=' + id }) -} - -// 新增代码生成表定义 -export const createCodegenTable = (data: CodegenCreateListReqVO) => { - return request.post({ url: '/infra/codegen/create', data }) -} - -// 修改代码生成表定义 -export const updateCodegenTable = (data: CodegenUpdateReqVO) => { - return request.put({ url: '/infra/codegen/update', data }) -} - -// 基于数据库的表结构,同步数据库的表和字段定义 -export const syncCodegenFromDB = (id: number) => { - return request.put({ url: '/infra/codegen/sync-from-db?tableId=' + id }) -} - -// 预览生成代码 -export const previewCodegen = (id: number) => { - return request.get({ url: '/infra/codegen/preview?tableId=' + id }) -} - -// 下载生成代码 -export const downloadCodegen = (id: number) => { - return request.download({ url: '/infra/codegen/download?tableId=' + id }) -} - -// 获得表定义 -export const getSchemaTableList = (params) => { - return request.get({ url: '/infra/codegen/db/table/list', params }) -} - -// 基于数据库的表结构,创建代码生成器的表定义 -export const createCodegenList = (data) => { - return request.post({ url: '/infra/codegen/create-list', data }) -} - -// 删除代码生成表定义 -export const deleteCodegenTable = (id: number) => { - return request.delete({ url: '/infra/codegen/delete?tableId=' + id }) -} diff --git a/src/views/system/errorCode/ErrorCodeForm.vue b/src/views/system/errorCode/ErrorCodeForm.vue deleted file mode 100644 index 24ac2b98..00000000 --- a/src/views/system/errorCode/ErrorCodeForm.vue +++ /dev/null @@ -1,112 +0,0 @@ - - diff --git a/src/views/system/errorCode/index.vue b/src/views/system/errorCode/index.vue deleted file mode 100644 index c9538c8c..00000000 --- a/src/views/system/errorCode/index.vue +++ /dev/null @@ -1,228 +0,0 @@ - - -