md笔记
@Data
public class AjaxResult {
private Boolean success = true;
private String message = "操作成功!";
public AjaxResult() {
}
public static AjaxResult me(){
return new AjaxResult();
}
public AjaxResult setMessage(String message) {
this.success = false;
this.message = message;
return this;
}
}
pethome
package cn.itsource.basic.util;
import lombok.Data;
@Data
public class AjaxResult {
private Boolean success = true;
private String message = "操作成功!";
private Object resultObj = null;
public AjaxResult() {
}
public static AjaxResult me(){
return new AjaxResult();
}
public AjaxResult setMessage(String message) {
this.success = false;
this.message = message;
return this;
}
public AjaxResult setResultObj(Object resultObj) {
this.resultObj = resultObj;
return this;
}
public AjaxResult setSuccess(Boolean success) {
this.success = success;
return this;
}
}
hrm
package itsource.cw.util;
public class AjaxResult {
private boolean success = true;
private String message = "操作成功!";
private Object resultObj;
public boolean isSuccess() {
return success;
}
public AjaxResult setSuccess(boolean success) {
this.success = success;
return this;
}
public String getMessage() {
return message;
}
public AjaxResult setMessage(String message) {
this.message = message;
return this;
}
public Object getResultObj() {
return resultObj;
}
public AjaxResult setResultObj(Object resultObj) {
this.resultObj = resultObj;
return this;
}
public static AjaxResult me(){
return new AjaxResult();
}
}
cms
package cn.itsource.util;
public class AjaxResult {
private Boolean result = true;
private String error;
public AjaxResult(Boolean result, String error) {
super();
this.result = result;
this.error = error;
}
public AjaxResult() {
super();
}
public Boolean getResult() {
return result;
}
public void setResult(Boolean result) {
this.result = result;
}
public String getError() {
return error;
}
public void setError(String error) {
this.error = error;
}
}