chore: 🔨 合并排序、代码下载和生成菜单路由的代码

This commit is contained in:
ray
2024-08-02 01:03:23 +08:00
parent a7e98cfc47
commit fe35745f7f
2 changed files with 183 additions and 118 deletions

View File

@@ -38,6 +38,15 @@ class GeneratorAPI {
method: "get",
});
}
/** 重置代码生成配置 */
static resetGenConfig(tableName: string) {
return request({
url: `${GENERATOR_BASE_URL}/${tableName}/config`,
method: "delete",
});
}
/**
* 下载 ZIP 文件
* @param url
@@ -122,6 +131,9 @@ export interface GenConfigForm {
/** 上级菜单 */
parentMenuId?: number;
/** 字段排序 */
fieldSort?: number;
/** 字段配置列表 */
fieldConfigs?: FieldConfig[];
}