GITZYY преди 1 седмица
родител
ревизия
a0c44d13fc
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      egress-gateway-service-adapter/src/main/java/adapter/api/controller/ApiController.java

+ 2 - 1
egress-gateway-service-adapter/src/main/java/adapter/api/controller/ApiController.java

@@ -3,6 +3,7 @@ package adapter.api.controller;
 import com.hrsk.cloud.eg.app.api.ApiGatewayService;
 import com.hrsk.cloud.eg.clinet.dto.data.command.ApiInvokeParamCmd;
 import com.hrsk.pangu.dto.SingleResponse;
+import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
 
@@ -27,7 +28,7 @@ public class ApiController {
      * @author zhangyy
      * @date: 2024/8/30 14:34
      */
-    @RequestMapping("/loans/v1")
+    @PostMapping("/loans/v1")
     public SingleResponse loans(ApiInvokeParamCmd apiInvokeParamCmd) {
         return SingleResponse.of(apiGatewayService.invoke(apiInvokeParamCmd));
     }