package com.ruoyi.order.controller.inner; import com.ruoyi.common.core.domain.R; import com.ruoyi.common.security.annotation.InnerAuth; import com.ruoyi.order.service.IPaylogService; import com.ruoyi.system.api.domain.dto.RefundDTO; import java.util.List; import java.util.Map; import lombok.RequiredArgsConstructor; 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; /** * @author mitao * @date 2024/5/29 */ @RestController @RequestMapping("/pay") @RequiredArgsConstructor public class PayController { private final IPaylogService paylogService; /** * @param refundDTOS 退款数据传输对象 * @return Map key :orderNo value 退款结果 */ @InnerAuth @PostMapping("/refund-batch") public R> refund(@RequestBody List refundDTOS) { return R.ok(paylogService.refund(refundDTOS)); } @InnerAuth @PostMapping("/refund-batch1") public R refund(@RequestBody RefundDTO refundDTOS) { paylogService.refund1(refundDTOS); return R.ok(); } }