提交 b7863363 authored 作者: 000516's avatar 000516 提交者: Coding

分页返回对象删code、msg

分页返回对象删code、msg
......@@ -63,9 +63,9 @@ public class BaseController
protected TableDataInfo getDataTable(List<?> list)
{
TableDataInfo rspData = new TableDataInfo();
rspData.setCode(HttpStatus.SUCCESS);
// rspData.setCode(HttpStatus.SUCCESS);
rspData.setRows(list);
rspData.setMsg("查询成功");
// rspData.setMsg("查询成功");
rspData.setTotal(new PageInfo(list).getTotal());
return rspData;
}
......
......@@ -18,11 +18,11 @@ public class TableDataInfo implements Serializable
/** 列表数据 */
private List<?> rows;
/** 消息状态码 */
private int code;
/** 消息内容 */
private String msg;
// /** 消息状态码 */
// private int code;
//
// /** 消息内容 */
// private String msg;
/**
* 表格数据对象
......@@ -63,23 +63,23 @@ public class TableDataInfo implements Serializable
this.rows = rows;
}
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 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;
// }
}
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论