Commit 859c5c90 by weisong

add method

parent a55fa2ba
......@@ -66,6 +66,13 @@ public class ApiResult<T> implements Serializable {
return new ApiResult<>(httpCode, message, null);
}
/**
* 失败返回结果,并带有数据
*/
public static <T> ApiResult<T> errorWithResult(int httpCode, String message, T result) {
return new ApiResult<>(httpCode, message, result);
}
// Getters and Setters
}
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