package cn.aagro.ag.module.infra.api.logger;

import cn.aagro.ag.framework.common.biz.infra.logger.ApiErrorLogCommonApi;
import cn.aagro.ag.framework.common.biz.infra.logger.dto.ApiErrorLogCreateReqDTO;
import cn.aagro.ag.module.infra.service.logger.ApiErrorLogService;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;

import jakarta.annotation.Resource;

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

    @Resource
    private ApiErrorLogService apiErrorLogService;

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

}
