田源
2025-01-16 a13255b4129ee8a7a7b7e1ecd8e02dd2c78f7c17
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
package com.vci.starter.web.pagemodel;
 
import java.util.List;
 
/**
 * 树表的展示对象,目前适配layui,请在数据量小的时候使用,数据量太大时不建议使用
 * @author weidy
 */
public class TreeGrid implements java.io.Serializable {
 
    private static final long serialVersionUID = 5593300788850918425L;
    /**
     * 代号
     */
    private int code = 0;
 
    /**
     * 错误消息
     */
    private String msg;
 
    /**
     * 数据描述,其中必须要有treelevel,其中最顶级是-1,然后逐级增加,数据必须注意顺序
     */
    private List data;
 
    /**
     * 总数
     */
    private int total = 0;
 
    /**
     * 描述信息
     */
    private String description;
 
 
    public TreeGrid(){
 
    }
 
    public TreeGrid(String msg){
        this.setMsg(msg);
        this.setCode(1);
    }
 
    public int getCode() {
        return code;
    }
 
    public void setCode(int code) {
        this.code = code;
    }
 
    public String getMsg() {
        return msg;
    }
 
    public void setMsg(String msg) {
        this.msg = msg;
    }
 
    public List getData() {
        return data;
    }
 
    public int getTotal() {
        return total;
    }
 
    public void setTotal(int total) {
        this.total = total;
    }
 
    public String getDescription() {
        return description;
    }
 
    public void setDescription(String description) {
        this.description = description;
    }
 
    public void setData(List data) {
        this.data = data;
    }
}