mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-24 13:37:13 +00:00
refactor(gencode): 重构代码生成模块,优化字段初始化和类型处理
fix(setting): 确保日志目录存在 perf(logger): 改进日志文件轮转处理,优化异常处理 feat(gencode): 添加子表关联字段支持 style(constant): 更新字段常量命名规范 chore: 移除前端低代码生成器相关文件 fix(gencode): 修复CRUD操作中的字段过滤逻辑 refactor(gen_util): 重构字段初始化逻辑,增强类型安全 docs: 更新代码注释和文档 test: 移除无效测试文件 build: 更新依赖版本 ci: 优化CI配置
This commit is contained in:
@@ -153,6 +153,10 @@ export interface GenTableOutVO {
|
||||
table_name?: string;
|
||||
/** 表描述 */
|
||||
table_comment?: string;
|
||||
/** 关联子表的表名 */
|
||||
sub_table_name?: string;
|
||||
/** 关联子表的外键名 */
|
||||
sub_table_fk_name?: string;
|
||||
/** 实体类名称 */
|
||||
class_name?: string;
|
||||
/** 生成包路径 */
|
||||
@@ -166,23 +170,7 @@ export interface GenTableOutVO {
|
||||
/** 生成代码方式(0zip压缩包 1自定义路径) */
|
||||
gen_type?: string;
|
||||
/** 其它生成选项 */
|
||||
options?: string;
|
||||
/** 上级菜单ID字段 */
|
||||
parent_menu_id?: number;
|
||||
/** 上级菜单名称字段 */
|
||||
parent_menu_name?: string;
|
||||
/** 是否为子表 */
|
||||
sub?: boolean;
|
||||
/** 是否为树表 */
|
||||
tree?: boolean;
|
||||
/** 是否为单表 */
|
||||
crud?: boolean;
|
||||
/** 表描述 */
|
||||
description?: string;
|
||||
/** 列列表 */
|
||||
columns?: GenTableColumnOutSchema[];
|
||||
/** 参数选项 */
|
||||
params?: GenTableOptionModel;
|
||||
options?: GenTableOptionModel;
|
||||
}
|
||||
|
||||
/** 表选项模型 */
|
||||
@@ -193,12 +181,20 @@ export interface GenTableOptionModel {
|
||||
|
||||
/** 代码生成业务表模型 */
|
||||
export interface GenTableSchema extends GenTableOutVO {
|
||||
/** 表描述 */
|
||||
description?: string;
|
||||
/** 上级菜单ID字段 */
|
||||
parent_menu_id?: number;
|
||||
/** 上级菜单名称字段 */
|
||||
parent_menu_name?: string;
|
||||
/** 主键信息 */
|
||||
pk_column?: GenTableColumnOutSchema;
|
||||
/** 子表信息 */
|
||||
sub_table?: GenTableSchema;
|
||||
/** 表列信息 */
|
||||
columns: GenTableColumnOutSchema[];
|
||||
/** 是否为子表 */
|
||||
sub?: boolean;
|
||||
}
|
||||
|
||||
/** 代码生成业务表列模型 */
|
||||
@@ -325,5 +321,5 @@ export interface BasicInfoFormData {
|
||||
table_name?: string;
|
||||
table_comment?: string;
|
||||
class_name?: string;
|
||||
remark?: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user