package com.moral.api.pojo.form.system;
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import org.springframework.format.annotation.DateTimeFormat;
|
import org.springframework.util.ObjectUtils;
|
|
import java.util.Date;
|
|
/**
|
* @ClassName ManageLogQueryForm
|
* @Description TODO
|
* @Author 陈凯裕
|
* @Date 2021/4/12 9:33
|
* @Version TODO
|
**/
|
public class ManageLogQueryForm {
|
|
private Integer page;
|
|
private Integer size;
|
|
private String id;
|
|
private String type;
|
|
private String ip;
|
|
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
|
private Date startTime;
|
|
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
|
private Date endTime;
|
|
public boolean valid() {
|
if (
|
ObjectUtils.isEmpty(page) ||
|
ObjectUtils.isEmpty(size)
|
)
|
return false;
|
return true;
|
}
|
}
|