package cn.sikey.hmd.api;

import cn.sikey.framework.common.pojo.CommonResult;
import cn.sikey.hmd.api.hmd.PaymentExceptionLogsApi;
import cn.sikey.hmd.api.hmd.dto.paymentExceptionLogs.PaymentExceptionLogsDTO;
import cn.sikey.hmd.service.paymentExceptionLogs.PaymentExceptionLogsService;
import jakarta.annotation.Resource;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RestController;

/**
 * 付款记录异常 API 接口实现类
 *
 * @author qin
 */
@RestController // 提供 RESTful API 接口，给 Feign 调用
@Validated
public class PaymentExceptionLogsApiImpl implements PaymentExceptionLogsApi {

    @Resource
    private PaymentExceptionLogsService paymentExceptionLogsService;

    @Override
    public CommonResult<Void> savePaymentExceptionLogs(PaymentExceptionLogsDTO paymentExceptionLogsDTO) {
        paymentExceptionLogsService.savePaymentExceptionLogs(paymentExceptionLogsDTO);
        return CommonResult.success();
    }
}
