top.summerboot.orm.dto.TimeDTO Maven / Gradle / Ivy
The newest version!
package top.summerboot.orm.dto;
import top.summerboot.orm.wrapper.QueryCondition;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
* @author 谢霜
*/
@EqualsAndHashCode(callSuper = true)
@ApiModel("时间查询DTO")
@Data
public class TimeDTO extends PageDTO {
private static final long serialVersionUID = 1589099864592572353L;
@ApiModelProperty(value = "开始时间")
@QueryCondition(condition = QueryCondition.Condition.GE, field = "create_time")
private Date beginTime;
@ApiModelProperty(value = "结束时间")
@QueryCondition(condition = QueryCondition.Condition.LE, field = "create_time")
private Date endTime;
@ApiModelProperty(value = "时间排序,1倒叙,0正序")
@QueryCondition(condition = QueryCondition.Condition.DEFAULT, field = "create_time", sort = QueryCondition.Sort.AUTO)
private Integer timeSort;
@ApiModelProperty(value = "id排序,1倒叙,0正序")
@QueryCondition(condition = QueryCondition.Condition.DEFAULT, field = "id", sort = QueryCondition.Sort.AUTO)
private Integer idSort;
}