Commit 59e3e981 by 袁伟铭

1.0.0

parent cf3bd1d2
......@@ -2,7 +2,6 @@ package com.zq.common.vo;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.zq.common.context.ThreadContext;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
......@@ -33,14 +32,10 @@ public class ResultVo<T> implements Serializable {
private T data;
public static ResultVo success() {
ThreadContext.close();
return success(null);
}
public static <E> ResultVo<E> success(E data) {
ThreadContext.close();
ResultVo<E> result = new ResultVo<>();
result.setSuccess(true);
result.setData(data);
......@@ -48,14 +43,10 @@ public class ResultVo<T> implements Serializable {
}
public static ResultVo fail(String errMsg) {
ThreadContext.close();
return fail(500, errMsg);
}
public static ResultVo fail(int errCode, String errMsg) {
ThreadContext.close();
ResultVo result = new ResultVo<>();
result.setSuccess(false);
result.setErrCode(errCode);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment