package com.ruoyi.web.controller.api;
|
|
import com.ruoyi.system.service.ICBCNotifyService;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import lombok.RequiredArgsConstructor;
|
import lombok.extern.slf4j.Slf4j;
|
import org.springframework.context.annotation.Lazy;
|
import org.springframework.web.bind.annotation.PostMapping;
|
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 mitao
|
* @since 2025-12-16
|
*/
|
@Slf4j
|
@RestController
|
@RequestMapping("/icbc-notify")
|
@Api(tags = "工商银行支付回调接口")
|
@RequiredArgsConstructor(onConstructor_ = {@Lazy})
|
public class ICBCPayNotifyController {
|
|
private final ICBCNotifyService icbcNotifyService;
|
|
/**
|
* 大礼包商品订单支付回调(定金或全款)
|
*
|
* @param request HTTP请求对象
|
* @param response HTTP响应对象
|
*/
|
@ApiOperation(value = "大礼包商品订单支付回调")
|
@PostMapping("/big-gift/pay-notify")
|
public void bigGiftPayNotify(HttpServletRequest request, HttpServletResponse response) {
|
log.info("【工商银行】收到大礼包支付回调请求");
|
icbcNotifyService.bigGiftPayNotify(request, response);
|
}
|
|
/**
|
* 大礼包商品尾款支付回调
|
*
|
* @param request HTTP请求对象
|
* @param response HTTP响应对象
|
*/
|
@ApiOperation(value = "大礼包商品尾款支付回调")
|
@PostMapping("/big-gift/final-pay-notify")
|
public void bigGiftFinalPayNotify(HttpServletRequest request, HttpServletResponse response) {
|
log.info("【工商银行】收到大礼包尾款支付回调请求");
|
icbcNotifyService.bigGiftFinalPayNotify(request, response);
|
}
|
|
/**
|
* 实物商品订单支付回调
|
*
|
* @param request HTTP请求对象
|
* @param response HTTP响应对象
|
*/
|
@ApiOperation(value = "实物商品订单支付回调")
|
@PostMapping("/physical/pay-notify")
|
public void physicalPayNotify(HttpServletRequest request, HttpServletResponse response) {
|
log.info("【工商银行】收到实物商品支付回调请求");
|
icbcNotifyService.physicalPayNotify(request, response);
|
}
|
}
|