New file |
| | |
| | | package com.matrix.core.pojo; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.matrix.core.tools.DateUtil; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import javax.validation.constraints.NotNull; |
| | | import java.util.Date; |
| | | |
| | | @Data |
| | | @ApiModel(value = "BaseQueryDto", description = "通用分页查询参数接收类") |
| | | public class BasePageQueryDto { |
| | | |
| | | |
| | | @NotNull(message = "pageNum参数不能为空") |
| | | @ApiModelProperty(value = "第几页", example = "1") |
| | | private Integer pageNum; |
| | | |
| | | @NotNull(message = "pageSize参数不能为空") |
| | | @ApiModelProperty(value ="数量", example = "10") |
| | | private Integer pageSize; |
| | | |
| | | @ApiModelProperty(value ="排序方式", example = "desc") |
| | | private String order; |
| | | |
| | | @ApiModelProperty(value ="排序字段", example = "create_time") |
| | | private String sort; |
| | | |
| | | @ApiModelProperty(value ="关键字") |
| | | private String keywords; |
| | | |
| | | @JsonFormat(pattern = DateUtil.DATE_FORMAT_MM, timezone = "GMT+8") |
| | | @ApiModelProperty(value = "开始时间") |
| | | private Date beginTime; |
| | | |
| | | @JsonFormat(pattern = DateUtil.DATE_FORMAT_MM, timezone = "GMT+8") |
| | | @ApiModelProperty(value = "结束时间") |
| | | private Date endTime; |
| | | |
| | | |
| | | |
| | | } |