Browse Source

update eg

GITZYY 1 week ago
parent
commit
036b7175fa

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

@@ -1,6 +1,7 @@
 package com.hrsk.cloud.eg.app.loan.customize;
 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.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.dto.data.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.clinet.vo.DataVo;
 import com.hrsk.cloud.eg.clinet.vo.DataVo;
 import com.hrsk.cloud.eg.domain.common.constant.JoinMethodEnums;
 import com.hrsk.cloud.eg.domain.common.constant.JoinMethodEnums;
@@ -135,7 +136,7 @@ public class ApiCustomizeRouteService {
      * @author zhangyy
      * @author zhangyy
      * @date: 2024/9/13 09:59
      * @date: 2024/9/13 09:59
      */
      */
-    public DataVo loanCheckInto(CheckIntoParamCmd checkIntoParamCmd){
+    public DataVo loanCheckInto(LoanParamCmd checkIntoParamCmd){
         LoanDockingApi loanDockingApi = apiRouter(checkIntoParamCmd.getPlan());
         LoanDockingApi loanDockingApi = apiRouter(checkIntoParamCmd.getPlan());
       return   loanDockingApi.qualityCheck(checkIntoParamCmd.getUser(), checkIntoParamCmd.getPlan(),checkIntoParamCmd.getApiConfigInfo());
       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;
 package com.hrsk.cloud.eg.app.loan.customize;
 
 
 import com.hrsk.cloud.eg.app.loan.executor.checkInto.CheckCmdExe;
 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.clinet.vo.DataVo;
 import com.hrsk.cloud.eg.domain.common.constant.egress.EgressApiEndpointIntegrationModeEnum;
 import com.hrsk.cloud.eg.domain.common.constant.egress.EgressApiEndpointIntegrationModeEnum;
 import com.hrsk.pangu.dto.SingleResponse;
 import com.hrsk.pangu.dto.SingleResponse;
@@ -24,7 +23,7 @@ public class CodeStrategyCmd implements CheckCmdExe {
     private ApiCustomizeRouteService apiCustomizeRouteService;
     private ApiCustomizeRouteService apiCustomizeRouteService;
 
 
     @Override
     @Override
-    public SingleResponse route(CheckIntoParamCmd checkIntoParamCmd) {
+    public SingleResponse route(LoanParamCmd checkIntoParamCmd) {
         DataVo dataVo = apiCustomizeRouteService.loanCheckInto(checkIntoParamCmd);
         DataVo dataVo = apiCustomizeRouteService.loanCheckInto(checkIntoParamCmd);
         return SingleResponse.of(dataVo);
         return SingleResponse.of(dataVo);
     }
     }

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

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

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

@@ -6,6 +6,7 @@ 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.EgLoanApiConfigInfoDto;
 import com.hrsk.cloud.eg.clinet.dto.data.command.ApiInvokeParamCmd;
 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.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.clinet.dto.data.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.domain.common.constant.egress.EgRouteTypeEnum;
 import com.hrsk.cloud.eg.domain.common.constant.egress.EgRouteTypeEnum;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
@@ -36,10 +37,10 @@ public class CheckIntoCmd implements EndpointRouteService {
 
 
     @Override
     @Override
     public SingleResponse apiEndPoint(ApiInvokeParamCmd apiInvokeParamCmd) {
     public SingleResponse apiEndPoint(ApiInvokeParamCmd apiInvokeParamCmd) {
-        CheckIntoParamCmd checkIntoParamCmd = JSONObject.parseObject(apiInvokeParamCmd.getParam().toString(), CheckIntoParamCmd.class);
-        EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(checkIntoParamCmd.getPlan().getApiId());
+        LoanParamCmd loanParamCmd = JSONObject.parseObject(apiInvokeParamCmd.getParam().toString(), LoanParamCmd.class);
+        EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(loanParamCmd.getPlan().getApiId());
         Map<String, CheckCmdExe> collect = checkCmdExeList.stream().collect(Collectors.toMap(CheckCmdExe::getMode, CheckCmdExe -> CheckCmdExe));
         Map<String, CheckCmdExe> collect = checkCmdExeList.stream().collect(Collectors.toMap(CheckCmdExe::getMode, CheckCmdExe -> CheckCmdExe));
-        return   collect.get(loanApiConfigInfo.getIntegrationMode()).route(checkIntoParamCmd);
+        return   collect.get(loanApiConfigInfo.getIntegrationMode()).route(loanParamCmd);
     }
     }
 
 
     @Override
     @Override

+ 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
  * @date 2024/8/30 09:52
  */
  */
 @Data
 @Data
-public class CheckIntoParamCmd implements Serializable {
+public class LoanParamCmd implements Serializable {
     /**
     /**
      * 用户信息
      * 用户信息
      * */
      * */