com.lx.entity.SortPageDTO Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lxboot3 Show documentation
Show all versions of lxboot3 Show documentation
使用文档: https://a7fi97h1rc.feishu.cn/docx/X3LRdtLhkoXQ8hxgXDQc2CLOnEg?from=from_copylink
package com.lx.entity;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import lombok.Data;
import java.io.Serializable;
/**
* 分页入参父类
*
* @author ylx
* @date 2020-06-12
*/
@Data
public class SortPageDTO extends PageDTO implements Serializable {
@Schema(description = "排序字段",required=true)
@Pattern(regexp= "[a-z A-Z _ \\.]+",message = "排序字段不符合规则")
@NotNull(message="排序字段不能为空!")
private String sortField;
@Schema(description = "ASC 正序 DESC 倒叙",required=true)
@Pattern(regexp= "(ASC|DESC)",message = "排序类型不符合规则")
@NotNull(message="排序类型不能为空!")
private String sortType;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy