fix:优化时间查询参数
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.sdm.common.entity.req.data;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.fasterxml.jackson.annotation.JsonSetter;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
@@ -20,9 +21,11 @@ public class BaseReq {
|
||||
private Integer size;
|
||||
|
||||
@Schema(description = "文件创建搜索开始时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime startTime;
|
||||
|
||||
@Schema(description = "文件创建搜索结束时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime endTime;
|
||||
|
||||
@Schema(description = "创建时间范围,格式为 ['开始时间', '结束时间']")
|
||||
|
||||
@@ -2,6 +2,7 @@ package com.sdm.common.entity.req.data;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
@@ -9,7 +10,7 @@ import java.time.LocalDateTime;
|
||||
|
||||
@Data
|
||||
@Schema(description = "租户请求实体类")
|
||||
public class TenantListReq extends BaseReq implements Serializable {
|
||||
public class TenantListReq implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@@ -53,4 +54,12 @@ public class TenantListReq extends BaseReq implements Serializable {
|
||||
@Schema(description = "更新时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
@Schema(description = "当前页码")
|
||||
@NotNull(message = "当前页码不能为空")
|
||||
private Integer current;
|
||||
|
||||
@Schema(description = "每页显示数量")
|
||||
@NotNull(message = "每页显示数量不能为空")
|
||||
private Integer size;
|
||||
}
|
||||
Reference in New Issue
Block a user