Commit 39c14c11 by haozi

判断response返回结果

parent 3a45a698
...@@ -20,4 +20,8 @@ public interface ResponseUtil { ...@@ -20,4 +20,8 @@ public interface ResponseUtil {
response.setData(data); response.setData(data);
return response; return response;
} }
static boolean isSuccess(Response response) {
return response != null && response.getCode() == CommonConstant.Success.CODE;
}
} }
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