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

import cn.aagro.ag.framework.common.biz.infra.logger.ApiAccessLogCommonApi;
import cn.aagro.ag.framework.common.biz.infra.logger.dto.ApiAccessLogCreateReqDTO;
import cn.aagro.ag.module.infra.service.logger.ApiAccessLogService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;

/**
 * API 访问日志的 API 实现类
 *
 * @author AIOTAGRO
 */
@Service
@Validated
public class ApiAccessLogApiImpl implements ApiAccessLogCommonApi {

    @Resource
    private ApiAccessLogService apiAccessLogService;

    @Override
    public void createApiAccessLog(ApiAccessLogCreateReqDTO createDTO) {
        apiAccessLogService.createApiAccessLog(createDTO);
    }

}
