Commit edd064cc by 罗长华

ApiResult.ok()默认返回true

parent a121c23d
...@@ -112,7 +112,7 @@ public class ApiResult<T> implements Serializable { ...@@ -112,7 +112,7 @@ public class ApiResult<T> implements Serializable {
} }
public static ApiResult<Boolean> ok() { public static ApiResult<Boolean> ok() {
return ok(null); return ok(true);
} }
public static <T> ApiResult<T> ok(T data) { public static <T> ApiResult<T> ok(T data) {
...@@ -166,4 +166,4 @@ public class ApiResult<T> implements Serializable { ...@@ -166,4 +166,4 @@ public class ApiResult<T> implements Serializable {
public static ApiResult<Boolean> fail(String language) { public static ApiResult<Boolean> fail(String language) {
return fail(ApiCode.FAIL, language); return fail(ApiCode.FAIL, language);
} }
} }
\ No newline at end of file
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