GITZYY 1 tydzień temu
rodzic
commit
bebcf7fdc2

+ 0 - 5
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/api/ApiGatewayService.java

@@ -1,17 +1,12 @@
 package com.hrsk.cloud.eg.app.api;
 
 
-import com.alibaba.fastjson2.JSONObject;
-import com.hrsk.cloud.eg.app.loan.executor.checkInto.CheckCmdExe;
 import com.hrsk.cloud.eg.app.route.EndpointRouteService;
-import com.hrsk.cloud.eg.clinet.dto.data.EgLoanApiConfigInfoDto;
 import com.hrsk.cloud.eg.clinet.dto.data.command.ApiInvokeParamCmd;
-import com.hrsk.cloud.eg.clinet.dto.data.command.CheckIntoParamCmd;
 import com.hrsk.cloud.eg.domain.common.constant.BusinessServiceEnums;
 import com.hrsk.cloud.eg.domain.common.constant.egress.EgRouteTypeEnum;
 import com.hrsk.pangu.dto.SingleResponse;
 import lombok.extern.slf4j.Slf4j;
-import org.checkerframework.checker.units.qual.A;
 import org.springframework.stereotype.Service;
 
 import javax.annotation.Resource;

+ 2 - 2
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/loan/customize/ApiCustomizeRouteService.java

@@ -1,6 +1,6 @@
 package com.hrsk.cloud.eg.app.loan.customize;
 
-import com.hrsk.cloud.eg.clinet.dto.data.command.CheckIntoParamCmd;
+import com.hrsk.cloud.eg.clinet.dto.data.command.LoanParamCmd;
 import com.hrsk.cloud.eg.clinet.dto.data.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.clinet.vo.DataVo;
 import com.hrsk.cloud.eg.domain.common.constant.JoinMethodEnums;
@@ -135,7 +135,7 @@ public class ApiCustomizeRouteService {
      * @author zhangyy
      * @date: 2024/9/13 09:59
      */
-    public DataVo loanCheckInto(CheckIntoParamCmd checkIntoParamCmd){
+    public DataVo loanCheckInto(LoanParamCmd checkIntoParamCmd){
         LoanDockingApi loanDockingApi = apiRouter(checkIntoParamCmd.getPlan());
       return   loanDockingApi.qualityCheck(checkIntoParamCmd.getUser(), checkIntoParamCmd.getPlan(),checkIntoParamCmd.getApiConfigInfo());
     }

+ 2 - 3
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/loan/customize/CodeStrategyCmd.java

@@ -1,8 +1,7 @@
 package com.hrsk.cloud.eg.app.loan.customize;
 
 import com.hrsk.cloud.eg.app.loan.executor.checkInto.CheckCmdExe;
-import com.hrsk.cloud.eg.clinet.dto.data.command.ApiInvokeParamCmd;
-import com.hrsk.cloud.eg.clinet.dto.data.command.CheckIntoParamCmd;
+import com.hrsk.cloud.eg.clinet.dto.data.command.LoanParamCmd;
 import com.hrsk.cloud.eg.clinet.vo.DataVo;
 import com.hrsk.cloud.eg.domain.common.constant.egress.EgressApiEndpointIntegrationModeEnum;
 import com.hrsk.pangu.dto.SingleResponse;
@@ -24,7 +23,7 @@ public class CodeStrategyCmd implements CheckCmdExe {
     private ApiCustomizeRouteService apiCustomizeRouteService;
 
     @Override
-    public SingleResponse route(CheckIntoParamCmd checkIntoParamCmd) {
+    public SingleResponse route(LoanParamCmd checkIntoParamCmd) {
         DataVo dataVo = apiCustomizeRouteService.loanCheckInto(checkIntoParamCmd);
         return SingleResponse.of(dataVo);
     }

+ 2 - 2
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/loan/executor/checkInto/CheckCmdExe.java

@@ -1,6 +1,6 @@
 package com.hrsk.cloud.eg.app.loan.executor.checkInto;
 
-import com.hrsk.cloud.eg.clinet.dto.data.command.CheckIntoParamCmd;
+import com.hrsk.cloud.eg.clinet.dto.data.command.LoanParamCmd;
 import com.hrsk.pangu.dto.SingleResponse;
 
 /**
@@ -12,7 +12,7 @@ import com.hrsk.pangu.dto.SingleResponse;
 public interface CheckCmdExe {
 
 
-    SingleResponse route(CheckIntoParamCmd apiInvokeParamCmd);
+    SingleResponse route(LoanParamCmd apiInvokeParamCmd);
 
     String getMode();
 

+ 2 - 3
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/route/impl/CheckIntoCmd.java

@@ -3,9 +3,8 @@ package com.hrsk.cloud.eg.app.route.impl;
 import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.app.loan.executor.checkInto.CheckCmdExe;
 import com.hrsk.cloud.eg.app.route.EndpointRouteService;
-import com.hrsk.cloud.eg.clinet.dto.data.EgLoanApiConfigInfoDto;
 import com.hrsk.cloud.eg.clinet.dto.data.command.ApiInvokeParamCmd;
-import com.hrsk.cloud.eg.clinet.dto.data.command.CheckIntoParamCmd;
+import com.hrsk.cloud.eg.clinet.dto.data.command.LoanParamCmd;
 import com.hrsk.cloud.eg.clinet.dto.data.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.domain.common.constant.egress.EgRouteTypeEnum;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
@@ -36,7 +35,7 @@ public class CheckIntoCmd implements EndpointRouteService {
 
     @Override
     public SingleResponse apiEndPoint(ApiInvokeParamCmd apiInvokeParamCmd) {
-        CheckIntoParamCmd checkIntoParamCmd = JSONObject.parseObject(apiInvokeParamCmd.getParam().toString(), CheckIntoParamCmd.class);
+        LoanParamCmd checkIntoParamCmd = JSONObject.parseObject(apiInvokeParamCmd.getParam().toString(), LoanParamCmd.class);
         EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(checkIntoParamCmd.getPlan().getApiId());
         EgLoanApiConfigInfoCmd configCmd = BeanCopyUtils.copy(loanApiConfigInfo, EgLoanApiConfigInfoCmd.class);
         Map<String, CheckCmdExe> collect = checkCmdExeList.stream().collect(Collectors.toMap(CheckCmdExe::getMode, CheckCmdExe -> CheckCmdExe));

+ 1 - 1
egress-gateway-service-client/src/main/java/com/hrsk/cloud/eg/clinet/dto/data/command/CheckIntoParamCmd.java → egress-gateway-service-client/src/main/java/com/hrsk/cloud/eg/clinet/dto/data/command/LoanParamCmd.java

@@ -14,7 +14,7 @@ import java.io.Serializable;
  * @date 2024/8/30 09:52
  */
 @Data
-public class CheckIntoParamCmd implements Serializable {
+public class LoanParamCmd implements Serializable {
     /**
      * 用户信息
      * */

+ 2 - 2
egress-gateway-service-infrastructure/src/main/java/com/hrsk/cloud/eg/infrastructure/request/HttpRequestCheckIntoService.java

@@ -1,7 +1,7 @@
 package com.hrsk.cloud.eg.infrastructure.request;
 
 import com.alibaba.fastjson2.JSONObject;
-import com.hrsk.cloud.eg.clinet.dto.data.command.CheckIntoParamCmd;
+import com.hrsk.cloud.eg.clinet.dto.data.command.LoanParamCmd;
 import com.hrsk.cloud.eg.clinet.vo.DataVo;
 import com.hrsk.cloud.eg.domain.api.Api;
 import com.hrsk.cloud.eg.domain.api.ApiFactory;
@@ -47,7 +47,7 @@ public class HttpRequestCheckIntoService {
      * @author zhangyy
      * @date: 2024/8/30 14:24
      */
-    public DataVo checkInto(CheckIntoParamCmd paramDto){
+    public DataVo checkInto(LoanParamCmd paramDto){
         EgApiEndpointDo eg = egApiEndpointService.getById(paramDto.getPlan().getApiId());
         try {
             HttpApiConfig httpApiConfig = (HttpApiConfig) HessianUtils.deserialize(eg.getRequestConfig());