소스 검색

update eg

GITZYY 1 주 전
부모
커밋
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;
 
 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 +136,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 - 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;
 
 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 +13,7 @@ import com.hrsk.pangu.dto.SingleResponse;
 public interface CheckCmdExe {
 
 
-    SingleResponse route(CheckIntoParamCmd apiInvokeParamCmd);
+    SingleResponse route(LoanParamCmd apiInvokeParamCmd);
 
     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.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,10 +37,10 @@ public class CheckIntoCmd implements EndpointRouteService {
 
     @Override
     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));
-        return   collect.get(loanApiConfigInfo.getIntegrationMode()).route(checkIntoParamCmd);
+        return   collect.get(loanApiConfigInfo.getIntegrationMode()).route(loanParamCmd);
     }
 
     @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
  */
 @Data
-public class CheckIntoParamCmd implements Serializable {
+public class LoanParamCmd implements Serializable {
     /**
      * 用户信息
      * */