|
|
|
@ -1,5 +1,6 @@ |
|
|
|
package com.bnyer.pay.controller; |
|
|
|
|
|
|
|
import com.bnyer.common.core.annotation.LimitRepeatRequest; |
|
|
|
import com.bnyer.common.core.domain.R; |
|
|
|
import com.bnyer.common.core.enums.ResponseEnum; |
|
|
|
import com.bnyer.common.core.exception.ServiceException; |
|
|
|
@ -39,7 +40,7 @@ public class UnifiedPayController { |
|
|
|
@Autowired |
|
|
|
private UnifiedPayService unifiedPayService; |
|
|
|
|
|
|
|
//@LimitRepeatRequest(bodyAllParam = true, message = "您的订单已提交,请勿频繁操作")
|
|
|
|
@LimitRepeatRequest(bodyAllParam = true, message = "您的订单已提交,请勿频繁操作") |
|
|
|
@PostMapping("/unifiedOrder") |
|
|
|
@Operation(summary = "统一下单,并生成支付订单" , description = "生成支付订单,返回前端支付所需参数") |
|
|
|
public R<UnifiedOrderVo> unifiedOrder(@Valid @RequestBody UnifiedOrderDto dto, HttpServletRequest request){ |
|
|
|
@ -57,7 +58,7 @@ public class UnifiedPayController { |
|
|
|
return R.ok(queryOrderVo); |
|
|
|
} |
|
|
|
|
|
|
|
//@LimitRepeatRequest(time = 10, message = "请勿频繁操作")
|
|
|
|
@LimitRepeatRequest(time = 10, message = "请勿频繁操作") |
|
|
|
@PostMapping("/refund") |
|
|
|
@Operation(summary = "统一退款" , description = "统一退款") |
|
|
|
public R<?> refund(@Valid @RequestBody RefundDto dto){ |
|
|
|
|