From 0883a500c1846265fcfe655704034d5a2d42e097 Mon Sep 17 00:00:00 2001 From: ray <1490493387@qq.com> Date: Fri, 2 Aug 2024 08:04:12 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20:recycle:=20=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E5=92=8C=E6=8E=A5=E5=8F=A3=E5=90=8D=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/generator.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/api/generator.ts b/src/api/generator.ts index 84179977..24af262a 100644 --- a/src/api/generator.ts +++ b/src/api/generator.ts @@ -52,9 +52,9 @@ class GeneratorAPI { * @param url * @param fileName */ - static downloadZip(tableName: string, fileName?: string) { + static download(tableName: string, fileName?: string) { return request({ - url: `${GENERATOR_BASE_URL}/${tableName}/downloadZip`, + url: `${GENERATOR_BASE_URL}/${tableName}/download`, method: "get", responseType: "blob", }).then((res) => { @@ -131,15 +131,12 @@ export interface GenConfigForm { /** 上级菜单 */ parentMenuId?: number; - /** 字段排序 */ - fieldSort?: number; - /** 字段配置列表 */ fieldConfigs?: FieldConfig[]; } /** 字段配置 */ -interface FieldConfig { +export interface FieldConfig { /** 主键 */ id?: number; @@ -178,4 +175,7 @@ interface FieldConfig { /** 字段长度 */ maxLength?: number; + + /** 字段排序 */ + fieldSort?: number; }