feat(SDK): 分页公共参数提交

This commit is contained in:
song-tianyang 2023-06-08 17:51:23 +08:00 committed by jianxing
parent b799b3ceec
commit 7cc038b157
1 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,27 @@
package io.metersphere.sdk.dto;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import lombok.Data;
import java.util.Map;
@Data
public class BasePageRequest {
@Schema(title = "关键字")
private String keyword;
@Min(value = 1, message = "当前页码必须大于0")
@Schema(title = "当前页码")
private int current;
@Min(value = 5, message = "每页显示条数必须不小于5")
@Schema(title = "每页显示条数")
private int pageSize;
@Schema(title = "排序字段(字段:asc/desc")
private Map<String, String> sort;
@Schema(title = "过滤字段")
private Map<String, Object> filter;
}