docs: 修复接口文档中 LocalDateTime 类型数据的示例信息不显示的问题
This commit is contained in:
parent
2b316d1685
commit
332bd6cd2a
@ -52,7 +52,7 @@ public class BaseDetailVO extends BaseVO {
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
@Schema(description = "修改时间", example = "2023-08-08 08:08:08")
|
||||
@Schema(description = "修改时间", example = "2023-08-08 08:08:08", type = "string")
|
||||
@ExcelProperty(value = "修改时间")
|
||||
private LocalDateTime updateTime;
|
||||
}
|
||||
|
@ -61,7 +61,7 @@ public class BaseVO implements Serializable {
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@Schema(description = "创建时间", example = "2023-08-08 08:08:08")
|
||||
@Schema(description = "创建时间", example = "2023-08-08 08:08:08", type = "string")
|
||||
@ExcelProperty(value = "创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
|
@ -57,6 +57,6 @@ public class LogVO implements Serializable {
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@Schema(description = "创建时间", example = "2023-08-08 08:08:08")
|
||||
@Schema(description = "创建时间", example = "2023-08-08 08:08:08", type = "string")
|
||||
private LocalDateTime createTime;
|
||||
}
|
||||
|
@ -81,6 +81,6 @@ public class OnlineUserVO implements Serializable {
|
||||
/**
|
||||
* 登录时间
|
||||
*/
|
||||
@Schema(description = "登录时间", example = "2023-08-08 08:08:08")
|
||||
@Schema(description = "登录时间", example = "2023-08-08 08:08:08", type = "string")
|
||||
private LocalDateTime loginTime;
|
||||
}
|
||||
|
@ -95,13 +95,13 @@ public class UserInfoVO implements Serializable {
|
||||
/**
|
||||
* 最后一次修改密码时间
|
||||
*/
|
||||
@Schema(description = "最后一次修改密码时间", example = "2023-08-08 08:08:08")
|
||||
@Schema(description = "最后一次修改密码时间", example = "2023-08-08 08:08:08", type = "string")
|
||||
private LocalDateTime pwdResetTime;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@Schema(description = "创建时间", example = "2023-08-08 08:08:08")
|
||||
@Schema(description = "创建时间", example = "2023-08-08 08:08:08", type = "string")
|
||||
@JsonIgnore
|
||||
private LocalDateTime createTime;
|
||||
|
||||
|
@ -66,13 +66,13 @@ public class AnnouncementRequest extends BaseRequest {
|
||||
/**
|
||||
* 生效时间
|
||||
*/
|
||||
@Schema(description = "生效时间", example = "2023-08-08 00:00:00")
|
||||
@Schema(description = "生效时间", example = "2023-08-08 00:00:00", type = "string")
|
||||
private LocalDateTime effectiveTime;
|
||||
|
||||
/**
|
||||
* 终止时间
|
||||
*/
|
||||
@Schema(description = "终止时间", example = "2023-08-08 23:59:59")
|
||||
@Schema(description = "终止时间", example = "2023-08-08 23:59:59", type = "string")
|
||||
@Future(message = "终止时间必须是未来时间")
|
||||
private LocalDateTime terminateTime;
|
||||
}
|
@ -66,14 +66,14 @@ public class AnnouncementDetailVO extends BaseDetailVO {
|
||||
/**
|
||||
* 生效时间
|
||||
*/
|
||||
@Schema(description = "生效时间", example = "2023-08-08 00:00:00")
|
||||
@Schema(description = "生效时间", example = "2023-08-08 00:00:00", type = "string")
|
||||
@ExcelProperty(value = "生效时间")
|
||||
private LocalDateTime effectiveTime;
|
||||
|
||||
/**
|
||||
* 终止时间
|
||||
*/
|
||||
@Schema(description = "终止时间", example = "2023-08-08 23:59:59")
|
||||
@Schema(description = "终止时间", example = "2023-08-08 23:59:59", type = "string")
|
||||
@ExcelProperty(value = "终止时间")
|
||||
private LocalDateTime terminateTime;
|
||||
}
|
@ -52,13 +52,13 @@ public class AnnouncementVO extends BaseVO {
|
||||
/**
|
||||
* 生效时间
|
||||
*/
|
||||
@Schema(description = "生效时间", example = "2023-08-08 00:00:00")
|
||||
@Schema(description = "生效时间", example = "2023-08-08 00:00:00", type = "string")
|
||||
private LocalDateTime effectiveTime;
|
||||
|
||||
/**
|
||||
* 终止时间
|
||||
*/
|
||||
@Schema(description = "终止时间", example = "2023-08-08 23:59:59")
|
||||
@Schema(description = "终止时间", example = "2023-08-08 23:59:59", type = "string")
|
||||
private LocalDateTime terminateTime;
|
||||
|
||||
/**
|
||||
|
@ -114,7 +114,7 @@ public class UserDetailVO extends BaseDetailVO {
|
||||
/**
|
||||
* 最后一次修改密码时间
|
||||
*/
|
||||
@Schema(description = "最后一次修改密码时间", example = "2023-08-08 08:08:08")
|
||||
@Schema(description = "最后一次修改密码时间", example = "2023-08-08 08:08:08", type = "string")
|
||||
private LocalDateTime pwdResetTime;
|
||||
|
||||
/**
|
||||
|
@ -135,7 +135,7 @@ public class FieldConfigDO implements Serializable {
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@Schema(description = "创建时间", example = "2023-08-08 08:08:08")
|
||||
@Schema(description = "创建时间", example = "2023-08-08 08:08:08", type = "string")
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private LocalDateTime createTime;
|
||||
|
||||
|
@ -118,14 +118,14 @@ public class GenConfigDO implements Serializable {
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@Schema(description = "创建时间", example = "2023-08-08 08:08:08")
|
||||
@Schema(description = "创建时间", example = "2023-08-08 08:08:08", type = "string")
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private LocalDateTime createTime;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
@Schema(description = "修改时间", example = "2023-08-08 08:08:08")
|
||||
@Schema(description = "修改时间", example = "2023-08-08 08:08:08", type = "string")
|
||||
@TableField(fill = FieldFill.UPDATE)
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
|
@ -62,7 +62,7 @@ public class TableVO implements Serializable {
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@Schema(description = "创建时间", example = "2023-08-08 08:08:08")
|
||||
@Schema(description = "创建时间", example = "2023-08-08 08:08:08", type = "string")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user