Ver código fonte

调整目录结构

Jack 10 meses atrás
pai
commit
0e795f4ff4

+ 4 - 4
jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/api/okki/translate/controller/TranslateApiController.java → jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/okki/translate/controller/TranslateApiController.java

@@ -1,11 +1,11 @@
-package org.jeecg.modules.api.okki.translate.controller;
+package org.jeecg.modules.okki.translate.controller;
 
 import lombok.extern.slf4j.Slf4j;
 import org.apache.http.HttpHeaders;
 import org.jeecg.common.api.vo.Result;
-import org.jeecg.modules.api.okki.translate.dto.TranslateRequestDto;
-import org.jeecg.modules.api.okki.translate.dto.TranslateResults;
-import org.jeecg.modules.api.okki.translate.service.TranslateService;
+import org.jeecg.modules.okki.translate.dto.TranslateRequestDto;
+import org.jeecg.modules.okki.translate.dto.TranslateResults;
+import org.jeecg.modules.okki.translate.service.TranslateService;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.*;
 

+ 1 - 1
jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/api/okki/translate/dto/RransResultBaidu.java → jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/okki/translate/dto/RransResultBaidu.java

@@ -1,4 +1,4 @@
-package org.jeecg.modules.api.okki.translate.dto;
+package org.jeecg.modules.okki.translate.dto;
 
 import com.alibaba.fastjson.annotation.JSONField;
 import lombok.Data;

+ 1 - 1
jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/api/okki/translate/dto/TransRresultSigle.java → jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/okki/translate/dto/TransRresultSigle.java

@@ -1,4 +1,4 @@
-package org.jeecg.modules.api.okki.translate.dto;
+package org.jeecg.modules.okki.translate.dto;
 
 import lombok.Data;
 

+ 1 - 2
jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/api/okki/translate/dto/TranslateRequestDto.java → jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/okki/translate/dto/TranslateRequestDto.java

@@ -1,6 +1,5 @@
-package org.jeecg.modules.api.okki.translate.dto;
+package org.jeecg.modules.okki.translate.dto;
 
-import com.alibaba.fastjson.annotation.JSONField;
 import com.fasterxml.jackson.annotation.JsonProperty;
 import lombok.Data;
 

+ 1 - 1
jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/api/okki/translate/dto/TranslateResults.java → jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/okki/translate/dto/TranslateResults.java

@@ -1,4 +1,4 @@
-package org.jeecg.modules.api.okki.translate.dto;
+package org.jeecg.modules.okki.translate.dto;
 
 import lombok.Data;
 

+ 6 - 6
jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/api/okki/translate/service/TranslateService.java → jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/okki/translate/service/TranslateService.java

@@ -1,12 +1,12 @@
-package org.jeecg.modules.api.okki.translate.service;
+package org.jeecg.modules.okki.translate.service;
 
 import com.alibaba.fastjson.JSON;
 import lombok.extern.slf4j.Slf4j;
-import org.jeecg.modules.api.okki.translate.dto.RransResultBaidu;
-import org.jeecg.modules.api.okki.translate.dto.TransRresultSigle;
-import org.jeecg.modules.api.okki.translate.dto.TranslateRequestDto;
-import org.jeecg.modules.api.okki.translate.dto.TranslateResults;
-import org.jeecg.modules.api.okki.translate.tools.TransBaiduApi;
+import org.jeecg.modules.okki.translate.dto.RransResultBaidu;
+import org.jeecg.modules.okki.translate.dto.TransRresultSigle;
+import org.jeecg.modules.okki.translate.dto.TranslateRequestDto;
+import org.jeecg.modules.okki.translate.dto.TranslateResults;
+import org.jeecg.modules.okki.translate.tools.TransBaiduApi;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 

+ 7 - 13
jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/api/okki/translate/tools/HttpGet.java → jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/okki/translate/tools/HttpGet.java

@@ -1,11 +1,10 @@
-package org.jeecg.modules.api.okki.translate.tools;
-
-import java.io.BufferedReader;
-import java.io.Closeable;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.io.UnsupportedEncodingException;
+package org.jeecg.modules.okki.translate.tools;
+
+import javax.net.ssl.HttpsURLConnection;
+import javax.net.ssl.SSLContext;
+import javax.net.ssl.TrustManager;
+import javax.net.ssl.X509TrustManager;
+import java.io.*;
 import java.net.HttpURLConnection;
 import java.net.MalformedURLException;
 import java.net.URL;
@@ -16,11 +15,6 @@ import java.security.cert.CertificateException;
 import java.security.cert.X509Certificate;
 import java.util.Map;
 
-import javax.net.ssl.HttpsURLConnection;
-import javax.net.ssl.SSLContext;
-import javax.net.ssl.TrustManager;
-import javax.net.ssl.X509TrustManager;
-
 class HttpGet {
     protected static final int SOCKET_TIMEOUT = 10000; // 10S
     protected static final String GET = "GET";

+ 1 - 1
jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/api/okki/translate/tools/MD5.java → jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/okki/translate/tools/MD5.java

@@ -1,4 +1,4 @@
-package org.jeecg.modules.api.okki.translate.tools;
+package org.jeecg.modules.okki.translate.tools;
 
 import java.io.*;
 import java.security.MessageDigest;

+ 1 - 1
jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/api/okki/translate/tools/TransBaiduApi.java → jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/okki/translate/tools/TransBaiduApi.java

@@ -1,4 +1,4 @@
-package org.jeecg.modules.api.okki.translate.tools;
+package org.jeecg.modules.okki.translate.tools;
 
 import org.springframework.stereotype.Service;