From b8441a1ac74d2c3325dd36d69ced511f19cd760b Mon Sep 17 00:00:00 2001
From: 赵士淞 <zhaoss@yhzhg.cn>
Date: Tue, 09 May 2023 10:02:27 +0000
Subject: [PATCH] 微调

---
 eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/api/Api.java |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/api/Api.java b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/api/Api.java
index ea16c61..e7e1166 100644
--- a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/api/Api.java
+++ b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/api/Api.java
@@ -7,6 +7,7 @@
 import org.springframework.http.ResponseEntity;
 import org.springframework.stereotype.Component;
 
+import javax.annotation.Resource;
 import java.util.Map;
 
 @Component
@@ -28,7 +29,13 @@
         JSONObject objBody = JSONObject.parseObject(strRes.getBody());
         // 结果集
         return recordSet(objBody);
+    }
 
+    public byte[] postStream(String postUrl, Map<String, Object> postParams) {
+        // 发起通信
+        ResponseEntity<byte[]> resourceRes = HttpUtil.get(postUrl, postParams, new HttpHeaders(), byte[].class);
+        // 结果集
+        return resourceRes.getBody();
     }
 
     private Object recordSet(JSONObject objBody) {

--
Gitblit v1.9.3