|
|
@@ -1,5 +1,6 @@
|
|
|
package com.zhongshu.card.server.core.httpRequest.apiConf;
|
|
|
|
|
|
+import cn.hutool.json.JSONObject;
|
|
|
import cn.hutool.json.JSONUtil;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
import lombok.Data;
|
|
|
@@ -27,6 +28,13 @@ public class APIResponseModel {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
+ public JSONObject toJson() {
|
|
|
+ if (content != null) {
|
|
|
+ return JSONUtil.parseObj(content);
|
|
|
+ }
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
public boolean isSuccess() {
|
|
|
return success;
|
|
|
}
|