|
@@ -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));
|
|
|
}
|