lihang
2023-04-25 3fade6d3b27f5666672bb3af610020367f790bda
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
package com.vci.ubcs.starter.web.pagemodel;
 
 
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
 
public class DataGrid<T> implements Serializable {
    private static final long serialVersionUID = -5909212697362510055L;
    private long total = 0L;
    private List<T> data = new ArrayList();
    private int start;
    private int limit;
    private int page;
    private String sort;
    private String order;
    private String msg;
    private int code = 0;
    private String traceId;
 
    public DataGrid() {
    }
 
    public DataGrid(String msg) {
        this.msg = msg;
        this.code = 1;
    }
 
    public long getTotal() {
        return this.total;
    }
 
    public void setTotal(long total) {
        this.total = total;
    }
 
    public List<T> getData() {
        return this.data;
    }
 
    public void setData(List<T> data) {
        this.data = data;
    }
 
    public int getStart() {
        return this.start;
    }
 
    public void setStart(int start) {
        this.start = start;
    }
 
    public int getLimit() {
        return this.limit;
    }
 
    public void setLimit(int limit) {
        this.limit = limit;
    }
 
    public int getPage() {
        return this.page;
    }
 
    public void setPage(int page) {
        this.page = page;
    }
 
    public String getSort() {
        return this.sort;
    }
 
    public void setSort(String sort) {
        this.sort = sort;
    }
 
    public String getOrder() {
        return this.order;
    }
 
    public void setOrder(String order) {
        this.order = order;
    }
 
    public String getMsg() {
        return this.msg;
    }
 
    public void setMsg(String msg) {
        this.msg = msg;
    }
 
    public int getCode() {
        return this.code;
    }
 
    public void setCode(int code) {
        this.code = code;
    }
 
    public String getTraceId() {
        return this.traceId;
    }
 
    public void setTraceId(String traceId) {
        this.traceId = traceId;
    }
 
    public String toString() {
        return "DataGrid{total=" + this.total + ", data=" + this.data + ", start=" + this.start + ", limit=" + this.limit + ", page=" + this.page + ", sort='" + this.sort + '\'' + ", order='" + this.order + '\'' + ", msg='" + this.msg + '\'' + ", code=" + this.code + ", traceId='" + this.traceId + '\'' + '}';
    }
}