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> getPaymentMethods(){ try { return BaseResponseUtils.buildSuccess(paymentMethodSv.getPayMethods()); } catch (Exception e) { log.error("获取支付方式记录异常", e); return BaseResponseUtils.buildException(e.getMessage()) ; } } }