|
|
@@ -24,13 +24,13 @@ public class Result {
|
|
|
return new Result(body);
|
|
|
}
|
|
|
|
|
|
- public static Result success(String token) {
|
|
|
- Map<String, Object> body = new HashMap<>();
|
|
|
- body.put("CODE", 200);
|
|
|
- body.put("MSG", "SUCCESS");
|
|
|
- body.put("token", token);
|
|
|
- return new Result(body);
|
|
|
- }
|
|
|
+// public static Result success(String token) {
|
|
|
+// Map<String, Object> body = new HashMap<>();
|
|
|
+// body.put("CODE", 200);
|
|
|
+// body.put("MSG", "SUCCESS");
|
|
|
+// body.put("token", token);
|
|
|
+// return new Result(body);
|
|
|
+// }
|
|
|
|
|
|
public static Result success(Object data) {
|
|
|
Map<String, Object> body = new HashMap<>();
|
|
|
@@ -54,4 +54,4 @@ public class Result {
|
|
|
public boolean isSuccess() {
|
|
|
return Integer.valueOf(200).equals(body.get("CODE"));
|
|
|
}
|
|
|
-}
|
|
|
+}
|