优化 yudao-spring-boot-starter-web 的 API 日志封装,和 yudao-cloud 保持一致

This commit is contained in:
YunaiV
2022-06-14 13:42:30 +08:00
parent 284ee5000a
commit 4c6e915def
34 changed files with 441 additions and 166 deletions

View File

@@ -1,9 +1,9 @@
package cn.iocoder.yudao.module.system.framework;
import cn.iocoder.yudao.framework.apilog.core.service.ApiAccessLog;
import cn.iocoder.yudao.framework.apilog.core.service.ApiAccessLogFrameworkService;
import cn.iocoder.yudao.framework.apilog.core.service.ApiErrorLog;
import cn.iocoder.yudao.framework.apilog.core.service.ApiErrorLogFrameworkService;
import cn.iocoder.yudao.framework.apilog.core.service.dto.ApiAccessLogCreateReqDTO;
import cn.iocoder.yudao.framework.apilog.core.service.dto.ApiErrorLogCreateReqDTO;
import cn.iocoder.yudao.module.infra.api.file.FileApi;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@@ -25,7 +25,7 @@ public class TmpConfiguration {
public ApiAccessLogFrameworkService apiAccessLogFrameworkService() {
return new ApiAccessLogFrameworkService() {
@Override
public void createApiAccessLogAsync(ApiAccessLogCreateReqDTO createDTO) {
public void createApiAccessLog(ApiAccessLog apiAccessLog) {
}
};
@@ -35,7 +35,7 @@ public class TmpConfiguration {
public ApiErrorLogFrameworkService apiErrorLogFrameworkService() {
return new ApiErrorLogFrameworkService() {
@Override
public void createApiErrorLogAsync(ApiErrorLogCreateReqDTO createDTO) {
public void createApiErrorLog(ApiErrorLog apiErrorLog) {
}
};