zhubaomin
6 天以前 e444da6e52f55d7f73cc316a8172345456435212
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package com.dy.pipIrrTerminal.paymentmethod;
 
import com.dy.common.aop.SsoAop;
import com.dy.common.webUtil.BaseResponse;
import com.dy.common.webUtil.BaseResponseUtils;
import com.dy.common.webUtil.QueryResultVo;
import com.dy.pipIrrGlobal.pojoSe.SePaymentMethod;
import com.dy.pipIrrGlobal.voSe.VoPaymentMethod;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
import java.util.List;
 
/**
 * @author ZhuBaoMin
 * @date 2025-06-25 11:08
 * @LastEditTime 2025-06-25 11:08
 * @Description
 */
 
@Slf4j
@RestController
@RequestMapping(path="paymentmethod")
@RequiredArgsConstructor
public class PaymentMethodCtrl {
    private final PaymentMethodSv paymentMethodSv;
 
    /**
     * 充值机用获取支付方式
     * @return
     */
    @GetMapping(path = "/get")
    @SsoAop()
    public BaseResponse<List<VoPaymentMethod>> getPaymentMethods(){
        try {
            return BaseResponseUtils.buildSuccess(paymentMethodSv.getPayMethods());
        } catch (Exception e) {
            log.error("获取支付方式记录异常", e);
            return BaseResponseUtils.buildException(e.getMessage()) ;
        }
    }
}