diff --git a/ruoyi-modules/ruoyi-generator/src/main/resources/vm/ts/types.ts.vm b/ruoyi-modules/ruoyi-generator/src/main/resources/vm/ts/types.ts.vm index 06e4000c..c3f6ed1f 100644 --- a/ruoyi-modules/ruoyi-generator/src/main/resources/vm/ts/types.ts.vm +++ b/ruoyi-modules/ruoyi-generator/src/main/resources/vm/ts/types.ts.vm @@ -11,6 +11,12 @@ export interface ${BusinessName}VO { #end #end #end +#if ($table.tree) + /** + * 子对象 + */ + children: ${BusinessName}VO[]; +#end } export interface ${BusinessName}Form extends BaseEntity { @@ -29,10 +35,7 @@ export interface ${BusinessName}Form extends BaseEntity { } export interface ${BusinessName}Query #if(!${treeCode})extends PageQuery #end{ - /** - * 日期范围参数 - */ - params?: any; + #foreach ($column in $columns) #if($column.query) /** @@ -45,6 +48,10 @@ export interface ${BusinessName}Query #if(!${treeCode})extends PageQuery #end{ #end #end #end + /** + * 日期范围参数 + */ + params?: any; }