完善代码生成器ts前端类型文件

This commit is contained in:
数据小王子 2024-03-22 21:08:15 +08:00
parent bcd06f3d2b
commit f3b3bec8b0
2 changed files with 45 additions and 77 deletions

View File

@ -39,21 +39,6 @@ mybatis-flex:
username: postgres
password: postgres@369
# # 数据源-2
# ds2:
# # 指定为HikariDataSource
# type: ${spring.datasource.type}
# # mysql数据库
# driver-class-name: com.mysql.cj.jdbc.Driver
# url: jdbc:mysql://localhost:3306/ruoyi-flex?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true
# username: root
# password: Root@369
# #postgresql数据库
## driver-class-name: org.postgresql.Driver
## url: jdbc:postgresql://localhost:5432/ruoyi-flex?useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true
## username: postgres
## password: postgres@369
# redis 单机配置(单机与集群只能开启一个另一个需要注释掉)
spring.data:
redis:

View File

@ -23,23 +23,6 @@ export interface ${BusinessName}VO extends BaseEntity {
#end
}
export interface ${subClassName}VO extends BaseEntity {
/** 列表序号 */
index:number;
#foreach ($column in $subTable.columns)
#if($column.list)
/**
* $column.columnComment
*/
$column.javaField:#if($column.javaField.indexOf("id") != -1 || $column.javaField.indexOf("Id") != -1) string | number;
#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
#end
#end
}
export interface ${BusinessName}Form {
#foreach ($column in $columns)
#if($column.insert || $column.edit)