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;
|
}
|
}
|