io.bitexpress.topia.commons.pagination.SortParam Maven / Gradle / Ivy
The newest version!
package io.bitexpress.topia.commons.pagination;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
* 排序参数
*
* @author shenyue
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
public class SortParam implements Serializable {
/**
* 方向
*/
@NotNull
private Direction direction;
/**
* 排序属性
*/
@NotBlank
private String property;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy