rentaiming
2024-05-31 e59e26244b2a07b9d8360551cbab75c6fd8a1248
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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.order.service.impl.PaylogServiceImpl;
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;
 
    @InnerAuth
    @PostMapping("/refund-batch")
    public R<Map<String, Object>> refund(@RequestBody List<RefundDTO> refundDTOS) {
        return R.ok(paylogService.refund(refundDTOS));
    }
}