package com.jeesharp.business.modules.pay.application.api;

import com.jeesharp.business.modules.pay.api.PayWechatTransactionChannelApi;
import com.jeesharp.business.modules.pay.dto.PayWechatTransactionOpsRequestDTO;
import com.jeesharp.business.modules.pay.dto.PayWechatTransactionOpsResultDTO;
import com.jeesharp.business.modules.pay.route.PayWechatTransactionOpsService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * {@link PayWechatTransactionChannelApi} 实现。
 *
 * @author jeesharp
 * @since 2026-06-12
 */
@Service
@AllArgsConstructor
public class PayWechatTransactionChannelApiImpl implements PayWechatTransactionChannelApi {

    private final PayWechatTransactionOpsService payWechatTransactionOpsService;

    @Override
    public PayWechatTransactionOpsResultDTO query(PayWechatTransactionOpsRequestDTO request) {
        return payWechatTransactionOpsService.query(request);
    }

    @Override
    public PayWechatTransactionOpsResultDTO close(PayWechatTransactionOpsRequestDTO request) {
        return payWechatTransactionOpsService.close(request);
    }
}
