Skip to content

Commit

Permalink
docs: 修复接口文档中 LocalDateTime 类型数据的示例信息不显示的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles7c committed Aug 29, 2023
1 parent 2b316d1 commit 332bd6c
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down

0 comments on commit 332bd6c

Please sign in to comment.