feat: 新增代码生成菜单和空页面

This commit is contained in:
ray
2024-07-13 08:55:13 +08:00
parent 57c866f42f
commit b322428830
3 changed files with 36 additions and 0 deletions

20
src/api/generator.ts Normal file
View File

@@ -0,0 +1,20 @@
import request from "@/utils/request";
const USER_BASE_URL = "/api/v1/generators";
class GeneratorAPI {
/**
* 获取代码生成预览数据
*/
static getPreviewData(tableName: string) {
return request<any, GeneratorPreviewVO>({
url: `${USER_BASE_URL}/preview/${tableName}`,
method: "get",
});
}
}
export default GeneratorAPI;
/** 代码生成预览对象 */
export interface GeneratorPreviewVO {}