kaiyu
2021-04-12 827ac521835b2c581e1134bb2e865bfcb7778be7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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;
    }
}