package com.nova.sankuai.controller.v2.callback; import com.nova.sankuai.domain.api.syh.SyhResponse; import com.nova.sankuai.domain.dto.callback.syh.SyhCallbackRequestDTO; import com.nova.sankuai.infra.utils.syh.SyhUtil; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.RequiredArgsConstructor; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController @RequestMapping("/api/v2/callback/syh") @Api(tags = "随易花回调接口") @RequiredArgsConstructor public class SyhCallbackController { private final SyhUtil syhUtil; @PostMapping("/callback") @ApiOperation("随易花回调") ResponseEntity callback(@RequestBody SyhCallbackRequestDTO body) { return ResponseEntity.ok(syhUtil.callback(body)); } }