package com.cico.nest.lcdp.boot.core.infra.api.logger;

import com.cico.nest.lcdp.boot.api.infra.logger.ApiErrorLogApi;
import com.cico.nest.lcdp.boot.api.infra.logger.dto.ApiErrorLogCreateReqDTO;
import com.cico.nest.lcdp.boot.core.infra.service.logger.ApiErrorLogService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;


/**
 * API 访问日志的 API 接口
 *
 * @author zws
 */
@Service
@Validated
public class ApiErrorLogApiImpl implements ApiErrorLogApi {

    @Resource
    private ApiErrorLogService apiErrorLogService;

    @Override
    public void createApiErrorLog(ApiErrorLogCreateReqDTO createDTO) {
        apiErrorLogService.createApiErrorLog(createDTO);
    }

}
