|
|
|
@ -2,9 +2,8 @@ package vip.xumy.core.pojo.com;
@@ -2,9 +2,8 @@ package vip.xumy.core.pojo.com;
|
|
|
|
|
|
|
|
|
|
import lombok.Data; |
|
|
|
|
|
|
|
|
|
/** All rights reserved |
|
|
|
|
* author:mengyxu |
|
|
|
|
* date:2019年6月26日 |
|
|
|
|
/** |
|
|
|
|
* All rights reserved author:mengyxu date:2019年6月26日 |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
@Data |
|
|
|
@ -17,7 +16,7 @@ public class AjaxResponse {
@@ -17,7 +16,7 @@ public class AjaxResponse {
|
|
|
|
|
this.success = success; |
|
|
|
|
this.message = message; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public AjaxResponse() { |
|
|
|
|
super(); |
|
|
|
|
} |
|
|
|
@ -27,5 +26,21 @@ public class AjaxResponse {
@@ -27,5 +26,21 @@ public class AjaxResponse {
|
|
|
|
|
this.message = message; |
|
|
|
|
this.data = data; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static AjaxResponse successed(String msg) { |
|
|
|
|
return new AjaxResponse(true, msg); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static AjaxResponse failed(String msg) { |
|
|
|
|
return new AjaxResponse(false, msg); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static AjaxResponse successed() { |
|
|
|
|
return new AjaxResponse(true, "操作成功"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static AjaxResponse failed() { |
|
|
|
|
return new AjaxResponse(false, "操作失败"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|