Compare commits

..

No commits in common. "c60a0cef7ddcbdd71d797e3cdc3f863f16b03c87" and "323c0fb46d37d1e1c948f7f9c0f3c5da8bfc4078" have entirely different histories.

View File

@ -1,13 +1,5 @@
#set($BaseEntity = ['createDept', 'createBy', 'createTime', 'updateBy', 'updateTime']) #set($BaseEntity = ['createDept', 'createBy', 'createTime', 'updateBy', 'updateTime'])
#set($ModuleName = $moduleName.substring(0, 1).toUpperCase() + $moduleName.substring(1)) #set($ModuleName = $moduleName.substring(0, 1).toUpperCase() + $moduleName.substring(1))
/**
* Namespace Api
*
* All backend api type
*/
declare namespace Api {
/** /**
* namespace ${ModuleName} * namespace ${ModuleName}
* *
@ -18,8 +10,7 @@ declare namespace Api {
type ${BusinessName} = Common.CommonRecord<{ type ${BusinessName} = Common.CommonRecord<{
#foreach($column in $columns)#if(!$BaseEntity.contains($column.javaField)) #foreach($column in $columns)#if(!$BaseEntity.contains($column.javaField))
/** $column.columnComment */ /** $column.columnComment */
$column.javaField:#if($column.javaField.indexOf("id") != -1 || $column.javaField.indexOf("Id") != -1) CommonType.IdType; #elseif($column.javaType == 'Long' || $column.javaType == 'Integer' || $column.javaType == $column.javaField:#if($column.javaField.indexOf("id") != -1 || $column.javaField.indexOf("Id") != -1) CommonType.IdType; #elseif($column.javaType == 'Long' || $column.javaType == 'Integer' || $column.javaType == 'Double' || $column.javaType == 'Float' || $column.javaType == 'BigDecimal') number; #elseif($column.javaType == 'Boolean') boolean; #else string; #end
'Double' || $column.javaType == 'Float' || $column.javaType == 'BigDecimal') number; #elseif($column.javaType == 'Boolean') boolean; #else string; #end
#end#end #end#end
}>; }>;
@ -51,4 +42,3 @@ declare namespace Api {
/** ${businessname} list */ /** ${businessname} list */
type ${BusinessName}List = Api.Common.PaginatingQueryRecord<${BusinessName}>; type ${BusinessName}List = Api.Common.PaginatingQueryRecord<${BusinessName}>;
} }
}