liusuyi
2026-05-06 99ab0d46d30b095d0e1c9d31349f42e0cefc9881
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import type { PageDomain, BaseEntity } from "../common";
 
/** ${functionName}配置分页查询参数 */
export interface ${BusinessName}QueryParams extends PageDomain {
#foreach($column in $columns)
#if($column.query)
#set($type = "string")
#if($column.javaType == "Long" || $column.javaType == "Integer")
  #set($type = "number")
#elseif($column.javaType == "Boolean")
  #set($type = "boolean")
#end
  /** ${column.columnComment} */
  ${column.javaField}?: ${type};
#end
#end
}
 
/** ${functionName}配置信息 */
export interface ${ClassName} extends BaseEntity {
#foreach($column in $columns)
#set($type = "string")
#if($column.javaType == "Long" || $column.javaType == "Integer")
  #set($type = "number")
#elseif($column.javaType == "Boolean")
  #set($type = "boolean")
#end
  /** ${column.columnComment} */
  ${column.javaField}?: ${type};
#end
#if($table.sub)
  /** $table.subTable.functionName信息 */
  ${subclassName}List?: ${subClassName}[];
#end
}
#if($table.sub)
 
/** ${subTable.functionName}配置信息 */
export interface ${subClassName} extends BaseEntity {
#foreach ($column in $subTable.columns)
#set($type = "string")
#if($column.javaType == "Long" || $column.javaType == "Integer")
  #set($type = "number")
#elseif($column.javaType == "Boolean")
  #set($type = "boolean")
#end
  /** ${column.columnComment} */
  ${column.javaField}?: ${type};
#end
}
#end