package com.lideeyunji.service.infra.api.impl;

import com.lideeyunji.service.infra.api.IApiAccessLogApi;
import com.lideeyunji.service.infra.dto.ApiAccessLogCreateReqDTO;
import com.lideeyunji.service.infra.service.IApiAccessLogService;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;

import javax.annotation.Resource;

/**
 * API 访问日志的 API 实现类
 *
 * @author 金灯剑客
 */
@Service
@Validated
public class ApiAccessLogApiImpl implements IApiAccessLogApi {

    @Resource
    private IApiAccessLogService apiAccessLogService;

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

}
