fix(api): 对齐 infra 模块前端 API 类型与后端 VO
修复类型不匹配: - codegen: CodegenColumn 6个 Boolean 字段 number→boolean - codegen: 添加 frontType/masterTableId/subJoinColumnId/subJoinMany/treeParentColumnId/treeNameColumnId - codegen: 删除多余 tableId/isParentMenuIdValid, dataSourceConfigId 改为必填 - job-log: executeIndex/duration string→number, beginTime/endTime Date→string - job-log: 删除多余 cronExpression 统一时间字段类型 Date→string: - config/data-source-config/file/file-config/job/codegen 补充缺失字段: - codegen.column: 添加 createTime - demo01/demo02/demo03: 添加 createTime 删除未使用的多余字段: - api-error-log: 删除 resultCode - file-config: 删除 visiblevo
parent
e3ebfbe933
commit
c8acf583b9
|
|
@ -27,7 +27,6 @@ export namespace InfraApiErrorLogApi {
|
|||
processUserId: number;
|
||||
processStatus: number;
|
||||
processTime: string;
|
||||
resultCode: number;
|
||||
createTime: string;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,8 +6,6 @@ export namespace InfraCodegenApi {
|
|||
/** 代码生成表定义 */
|
||||
export interface CodegenTable {
|
||||
id: number;
|
||||
tableId: number;
|
||||
isParentMenuIdValid: boolean;
|
||||
dataSourceConfigId: number;
|
||||
scene: number;
|
||||
tableName: string;
|
||||
|
|
@ -18,10 +16,16 @@ export namespace InfraCodegenApi {
|
|||
className: string;
|
||||
classComment: string;
|
||||
author: string;
|
||||
createTime: Date;
|
||||
updateTime: Date;
|
||||
templateType: number;
|
||||
parentMenuId: number;
|
||||
frontType: number;
|
||||
masterTableId: number;
|
||||
subJoinColumnId: number;
|
||||
subJoinMany: boolean;
|
||||
treeParentColumnId: number;
|
||||
treeNameColumnId: number;
|
||||
createTime: string;
|
||||
updateTime: string;
|
||||
}
|
||||
|
||||
/** 代码生成字段定义 */
|
||||
|
|
@ -31,19 +35,20 @@ export namespace InfraCodegenApi {
|
|||
columnName: string;
|
||||
dataType: string;
|
||||
columnComment: string;
|
||||
nullable: number;
|
||||
primaryKey: number;
|
||||
nullable: boolean;
|
||||
primaryKey: boolean;
|
||||
ordinalPosition: number;
|
||||
javaType: string;
|
||||
javaField: string;
|
||||
dictType: string;
|
||||
example: string;
|
||||
createOperation: number;
|
||||
updateOperation: number;
|
||||
listOperation: number;
|
||||
createOperation: boolean;
|
||||
updateOperation: boolean;
|
||||
listOperation: boolean;
|
||||
listOperationCondition: string;
|
||||
listOperationResult: number;
|
||||
listOperationResult: boolean;
|
||||
htmlType: string;
|
||||
createTime: string;
|
||||
}
|
||||
|
||||
/** 数据库表定义 */
|
||||
|
|
@ -72,7 +77,7 @@ export namespace InfraCodegenApi {
|
|||
|
||||
/** 创建代码生成请求 */
|
||||
export interface CodegenCreateListReqVO {
|
||||
dataSourceConfigId?: number;
|
||||
dataSourceConfigId: number;
|
||||
tableNames: string[];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ export namespace InfraConfigApi {
|
|||
type: number;
|
||||
visible: boolean;
|
||||
remark: string;
|
||||
createTime?: Date;
|
||||
createTime?: string;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ export namespace InfraDataSourceConfigApi {
|
|||
url: string;
|
||||
username: string;
|
||||
password: string;
|
||||
createTime?: Date;
|
||||
createTime?: string;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ export namespace Demo01ContactApi {
|
|||
birthday?: Dayjs | string; // 出生年
|
||||
description?: string; // 简介
|
||||
avatar: string; // 头像
|
||||
createTime?: string;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ export namespace Demo02CategoryApi {
|
|||
name?: string; // 名字
|
||||
parentId?: number; // 父级编号
|
||||
children?: Demo02Category[];
|
||||
createTime?: string;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ export namespace Demo03StudentApi {
|
|||
sex?: number; // 性别
|
||||
birthday?: Dayjs | string; // 出生日期
|
||||
description?: string; // 简介
|
||||
createTime?: string;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ export namespace Demo03StudentApi {
|
|||
description?: string; // 简介
|
||||
demo03courses?: Demo03Course[];
|
||||
demo03grade?: Demo03Grade;
|
||||
createTime?: string;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ export namespace Demo03StudentApi {
|
|||
description?: string; // 简介
|
||||
demo03courses?: Demo03Course[];
|
||||
demo03grade?: Demo03Grade;
|
||||
createTime?: string;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -27,10 +27,9 @@ export namespace InfraFileConfigApi {
|
|||
name: string;
|
||||
storage?: number;
|
||||
master: boolean;
|
||||
visible: boolean;
|
||||
config: FileClientConfig;
|
||||
remark: string;
|
||||
createTime?: Date;
|
||||
createTime?: string;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ export namespace InfraFileApi {
|
|||
url?: string;
|
||||
size?: number;
|
||||
type?: string;
|
||||
createTime?: Date;
|
||||
createTime?: string;
|
||||
}
|
||||
|
||||
/** 文件预签名地址 */
|
||||
|
|
|
|||
|
|
@ -9,11 +9,10 @@ export namespace InfraJobLogApi {
|
|||
jobId: number;
|
||||
handlerName: string;
|
||||
handlerParam: string;
|
||||
cronExpression: string;
|
||||
executeIndex: string;
|
||||
beginTime: Date;
|
||||
endTime: Date;
|
||||
duration: string;
|
||||
executeIndex: number;
|
||||
beginTime: string;
|
||||
endTime: string;
|
||||
duration: number;
|
||||
status: number;
|
||||
createTime?: string;
|
||||
result: string;
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ export namespace InfraJobApi {
|
|||
retryCount: number;
|
||||
retryInterval: number;
|
||||
monitorTimeout: number;
|
||||
createTime?: Date;
|
||||
createTime?: string;
|
||||
nextTimes?: Date[];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue