feat: 重构代码生成模块并添加示例模块

refactor(menu): 优化菜单删除逻辑,自动删除子菜单
refactor(dept): 优化部门删除逻辑,自动删除子部门
feat(redis): 添加分布式锁功能
feat(validator): 新增DateStr和TimeStr验证类型
refactor(logger): 简化日志配置,移除开发环境同步策略
refactor(console): 重命名并简化控制台输出函数
feat(example): 添加示例模块,包含完整数据类型示例
refactor(gencode): 重构代码生成工具,移除SQL生成
feat(ai): 添加MCP客户端和服务端实现
chore: 更新依赖版本
style: 清理无用代码和文件
This commit is contained in:
zhangtao
2026-01-03 04:28:18 +08:00
parent d7f87fafdb
commit 1ee6400ac7
41 changed files with 7213 additions and 6107 deletions
@@ -1,6 +1,6 @@
import request from "@/utils/request";
const API_PATH = "/gencode/demo";
const API_PATH = "/example/demo";
const DemoAPI = {
getDemoList(query: DemoPageQuery) {
@@ -94,8 +94,26 @@ export interface DemoTable extends BaseType {
name?: string;
created_by?: CommonType;
updated_by?: CommonType;
a?: number;
b?: number;
c?: number;
d?: boolean;
e?: string;
f?: string;
g?: string;
h?: string;
i?: Record<string, any>;
}
export interface DemoForm extends BaseFormType {
name?: string;
a?: number;
b?: number;
c?: number;
d?: boolean;
e?: string;
f?: string;
g?: string;
h?: string;
i?: Record<string, any>;
}