org.macrocloud.kernel.mf.support.Query Maven / Gradle / Ivy
package org.macrocloud.kernel.mf.support;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
/**
* 分页工具
*
*/
@Data
@Accessors(chain = true)
@ApiModel(description = "查询条件")
public class Query {
/**
* 当前页
*/
@ApiModelProperty(value = "当前页")
private Integer current;
/**
* 每页的数量
*/
@ApiModelProperty(value = "每页的数量")
private Integer size;
/**
* 正排序规则
*/
@ApiModelProperty(hidden = true)
private String ascs;
/**
* 倒排序规则
*/
@ApiModelProperty(hidden = true)
private String descs;
}