package cn.iocoder.yudao.framework.common.biz.infra.logger;
|
|
import cn.iocoder.yudao.framework.common.biz.infra.logger.dto.ApiAccessLogCreateReqDTO;
|
import jakarta.validation.Valid;
|
import org.springframework.scheduling.annotation.Async;
|
|
/**
|
* API 访问日志的 API 接口
|
*
|
* @author 芋道源码
|
*/
|
public interface ApiAccessLogCommonApi {
|
|
/**
|
* 创建 API 访问日志
|
*
|
* @param createDTO 创建信息
|
*/
|
void createApiAccessLog(@Valid ApiAccessLogCreateReqDTO createDTO);
|
|
/**
|
* 【异步】创建 API 访问日志
|
*
|
* @param createDTO 访问日志 DTO
|
*/
|
@Async
|
default void createApiAccessLogAsync(ApiAccessLogCreateReqDTO createDTO) {
|
createApiAccessLog(createDTO);
|
}
|
|
}
|