mirror of
https://gitee.com/JavaLionLi/plus-ui.git
synced 2026-09-13 07:43:43 +08:00
51 lines
972 B
Plaintext
51 lines
972 B
Plaintext
import type { BaseEntity<#if !table.tree>, PageQuery</#if> } from '@/api/types';
|
|
|
|
export interface ${BusinessName}VO {
|
|
<#list columns as column>
|
|
<#if column.list>
|
|
/**
|
|
* ${column.columnComment}
|
|
*/
|
|
${column.javaField}: ${column.tsType};
|
|
<#if column.htmlType == "imageUpload">
|
|
/**
|
|
* ${column.columnComment}Url
|
|
*/
|
|
${column.javaField}Url: string;
|
|
</#if>
|
|
</#if>
|
|
</#list>
|
|
<#if table.tree>
|
|
/**
|
|
* 子对象
|
|
*/
|
|
children: ${BusinessName}VO[];
|
|
</#if>
|
|
}
|
|
|
|
export interface ${BusinessName}Form extends BaseEntity {
|
|
<#list columns as column>
|
|
<#if column.insert || column.edit>
|
|
/**
|
|
* ${column.columnComment}
|
|
*/
|
|
${column.javaField}?: ${column.tsType};
|
|
</#if>
|
|
</#list>
|
|
}
|
|
|
|
export interface ${BusinessName}Query<#if !table.tree> extends PageQuery</#if> {
|
|
<#list columns as column>
|
|
<#if column.query>
|
|
/**
|
|
* ${column.columnComment}
|
|
*/
|
|
${column.javaField}?: ${column.tsType};
|
|
</#if>
|
|
</#list>
|
|
/**
|
|
* 日期范围参数
|
|
*/
|
|
params?: any;
|
|
}
|