| | |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.security.annotation.InnerAuth; |
| | | import com.ruoyi.order.service.IPaylogService; |
| | | import com.ruoyi.order.service.impl.PaylogServiceImpl; |
| | | import com.ruoyi.system.api.domain.dto.RefundDTO; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | |
| | | public class PayController { |
| | | |
| | | private final IPaylogService paylogService; |
| | | private final PaylogServiceImpl paylogServiceImpl; |
| | | |
| | | /** |
| | | * @param refundDTOS 退款数据传输对象 |
| | | * @return Map<String, Object> key :orderNo value 退款结果 |
| | | */ |
| | | @InnerAuth |
| | | @PostMapping("/refund-batch") |
| | | public R<Map<String, Object>> refund(@RequestBody List<RefundDTO> refundDTOS) { |
| | | return R.ok(paylogService.refund(refundDTOS)); |
| | | } |
| | | |
| | | @InnerAuth |
| | | @PostMapping("/refund-batch1") |
| | | public R refund(@RequestBody RefundDTO refundDTOS) { |
| | | paylogService.refund1(refundDTOS); |
| | | return R.ok(); |
| | | } |
| | | } |