首页>代码>spring mvc+mybatis+mysql+maven+bootstrap-table整合实现增删查改简单实例>/demo-bstable/src/main/java/com/xe/demo/common/pojo/AjaxResult.java
package com.xe.demo.common.pojo; /** * 封装返回数据 * @author czh * @2015年5月20日 */ public class AjaxResult { private int retcode = 1; private String retmsg = "操作成功"; private Object data; public AjaxResult(int retcode, String retmsg, Object data){ this.retcode = retcode; this.retmsg = retmsg; this.data = data; } public AjaxResult(int retcode, String retmsg){ this.retcode = retcode; this.retmsg = retmsg; } public AjaxResult(Object data){ this.retmsg = "查询成功"; this.data = data; } public AjaxResult(int retcode){ this.retcode = retcode; this.retmsg = "操作失败"; } public AjaxResult(String retmsg){ this.retcode = 0; this.retmsg = retmsg; } public AjaxResult(){ } public int getRetcode() { return retcode; } public void setRetcode(int retcode) { this.retcode = retcode; } public String getRetmsg() { return retmsg; } public void setRetmsg(String retmsg) { this.retmsg = retmsg; } public Object getData() { return data; } public void setData(Object data) { this.data = data; } @Override public String toString() { return "AjaxResult [retcode=" + retcode + ", retmsg=" + retmsg + ", data=" + data + "]"; } }


taoshen95 LV16
4月6日
hezhihui
1月9日
暂无贡献等级
xiaoaitx LV8
1月2日
Ella0902
2024年12月18日
暂无贡献等级
fff团团长 LV1
2024年9月7日
xingxiu LV1
2024年6月8日
rudyfather
2024年6月4日
暂无贡献等级
yangzhou11
2024年5月18日
暂无贡献等级
huigui007
2024年5月16日
暂无贡献等级
featherteng LV1
2024年5月3日