package com.oying.modules.hwc.rest; import com.oying.annotation.rest.AnonymousPostMapping; import com.oying.modules.hwc.service.SwiftPassService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.RequiredArgsConstructor; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; /** * @author xin * @description * @date 2025/1/24 下午1:01 */ @RestController @RequiredArgsConstructor @Api(tags = "HWS:汇旺财回调") @RequestMapping("/api/swiftPass") public class SwiftPassController { private final SwiftPassService swiftPassService; @ApiOperation("HWS支付回调") @AnonymousPostMapping(value = "/alipayCallback") public void alipayCallback(HttpServletRequest request, HttpServletResponse response) { swiftPassService.alipayCallback(request, response); } @ApiOperation("HWS退款回调") @AnonymousPostMapping(value = "/returnNotify") public void returnNotify(HttpServletRequest request, HttpServletResponse response) { swiftPassService.returnNotify(request, response); } }