From f313a47159408ff69e532921e4e127657db36712 Mon Sep 17 00:00:00 2001 From: luochuan Date: Wed, 22 Nov 2023 14:26:13 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=94=B9=E5=8F=98=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 10 ++++----- .../org/alis/{excel => blackchain}/.DS_Store | Bin .../AlisChainApplication.java} | 8 +++---- .../service/BinanceService.java | 21 +----------------- .../service/Exchange.java | 2 +- .../service/OkrExchangeAdapter.java | 3 +-- 6 files changed, 12 insertions(+), 32 deletions(-) rename src/main/java/org/alis/{excel => blackchain}/.DS_Store (100%) rename src/main/java/org/alis/{excel/EasyExcelApplication.java => blackchain/AlisChainApplication.java} (70%) rename src/main/java/org/alis/{excel => blackchain}/service/BinanceService.java (53%) rename src/main/java/org/alis/{excel => blackchain}/service/Exchange.java (91%) rename src/main/java/org/alis/{excel => blackchain}/service/OkrExchangeAdapter.java (98%) diff --git a/pom.xml b/pom.xml index a9a4f70..f6810cd 100644 --- a/pom.xml +++ b/pom.xml @@ -8,11 +8,11 @@ 2.7.9 - org.alis.excel - easy-excel + org.alis.blackchain + alis-chain 0.0.1-SNAPSHOT - easy-excel - excel 处理 + alis-chain + exchange about 1.8 @@ -92,7 +92,7 @@ - easy-excel + alis-chain org.springframework.boot diff --git a/src/main/java/org/alis/excel/.DS_Store b/src/main/java/org/alis/blackchain/.DS_Store similarity index 100% rename from src/main/java/org/alis/excel/.DS_Store rename to src/main/java/org/alis/blackchain/.DS_Store diff --git a/src/main/java/org/alis/excel/EasyExcelApplication.java b/src/main/java/org/alis/blackchain/AlisChainApplication.java similarity index 70% rename from src/main/java/org/alis/excel/EasyExcelApplication.java rename to src/main/java/org/alis/blackchain/AlisChainApplication.java index 19c9a43..c5c8c02 100644 --- a/src/main/java/org/alis/excel/EasyExcelApplication.java +++ b/src/main/java/org/alis/blackchain/AlisChainApplication.java @@ -1,16 +1,16 @@ -package org.alis.excel; +package org.alis.blackchain; import org.springframework.boot.WebApplicationType; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.builder.SpringApplicationBuilder; @SpringBootApplication -public class EasyExcelApplication { +public class AlisChainApplication { public static void main(String[] args) { new SpringApplicationBuilder() - .sources(EasyExcelApplication.class) - .main(EasyExcelApplication.class) + .sources(AlisChainApplication.class) + .main(AlisChainApplication.class) .web(WebApplicationType.NONE) .run(args); } diff --git a/src/main/java/org/alis/excel/service/BinanceService.java b/src/main/java/org/alis/blackchain/service/BinanceService.java similarity index 53% rename from src/main/java/org/alis/excel/service/BinanceService.java rename to src/main/java/org/alis/blackchain/service/BinanceService.java index aa63722..cdd9fee 100644 --- a/src/main/java/org/alis/excel/service/BinanceService.java +++ b/src/main/java/org/alis/blackchain/service/BinanceService.java @@ -1,29 +1,10 @@ -package org.alis.excel.service; +package org.alis.blackchain.service; -import cn.hutool.core.lang.Pair; -import cn.hutool.core.net.url.UrlBuilder; -import cn.hutool.http.HttpConfig; -import cn.hutool.http.HttpRequest; -import cn.hutool.http.Method; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.boot.CommandLineRunner; -import org.springframework.stereotype.Service; -import javax.annotation.Resource; -import javax.crypto.Mac; -import javax.crypto.spec.SecretKeySpec; import java.math.BigDecimal; -import java.net.InetSocketAddress; -import java.net.Proxy; -import java.nio.charset.StandardCharsets; -import java.time.LocalDateTime; -import java.time.ZoneId; -import java.time.ZoneOffset; -import java.time.ZonedDateTime; -import java.time.format.DateTimeFormatter; -import java.util.Base64; -import java.util.List; /** * @author lc diff --git a/src/main/java/org/alis/excel/service/Exchange.java b/src/main/java/org/alis/blackchain/service/Exchange.java similarity index 91% rename from src/main/java/org/alis/excel/service/Exchange.java rename to src/main/java/org/alis/blackchain/service/Exchange.java index 9dc4510..1a3dae4 100644 --- a/src/main/java/org/alis/excel/service/Exchange.java +++ b/src/main/java/org/alis/blackchain/service/Exchange.java @@ -1,4 +1,4 @@ -package org.alis.excel.service; +package org.alis.blackchain.service; import cn.hutool.core.lang.Pair; diff --git a/src/main/java/org/alis/excel/service/OkrExchangeAdapter.java b/src/main/java/org/alis/blackchain/service/OkrExchangeAdapter.java similarity index 98% rename from src/main/java/org/alis/excel/service/OkrExchangeAdapter.java rename to src/main/java/org/alis/blackchain/service/OkrExchangeAdapter.java index ca94d9c..c6643e9 100644 --- a/src/main/java/org/alis/excel/service/OkrExchangeAdapter.java +++ b/src/main/java/org/alis/blackchain/service/OkrExchangeAdapter.java @@ -1,4 +1,4 @@ -package org.alis.excel.service; +package org.alis.blackchain.service; import cn.hutool.core.lang.Pair; import cn.hutool.core.net.url.UrlBuilder; @@ -24,7 +24,6 @@ import java.time.ZoneOffset; import java.time.ZonedDateTime; import java.time.format.DateTimeFormatter; import java.util.*; -import java.util.concurrent.ThreadLocalRandom; /** * okr交易所