diff --git a/src/main/java/org/nutz/web/ajax/AjaxReturn.java b/src/main/java/org/nutz/web/ajax/AjaxReturn.java new file mode 100644 index 0000000..a560eb2 --- /dev/null +++ b/src/main/java/org/nutz/web/ajax/AjaxReturn.java @@ -0,0 +1,45 @@ +package org.nutz.web.ajax; + +public class AjaxReturn { + boolean ok; + String errCode; + String msg; + Object data; + + public boolean isOk() { + return ok; + } + + public String getErrCode() { + return errCode; + } + + public String getMsg() { + return msg; + } + + public Object getData() { + return data; + } + + public AjaxReturn setOk(boolean ok) { + this.ok = ok; + return this; + } + + public AjaxReturn setErrCode(String errCode) { + this.errCode = errCode; + return this; + } + + public AjaxReturn setMsg(String msg) { + this.msg = msg; + return this; + } + + public AjaxReturn setData(Object data) { + this.data = data; + return this; + } + +}