优化 yudao-spring-boot-starter-web 的 API 日志封装,和 yudao-cloud 保持一致
This commit is contained in:
@@ -13,7 +13,7 @@ import java.util.Map;
|
||||
@Data
|
||||
public class OperateLogCreateReqDTO {
|
||||
|
||||
@ApiModelProperty(value = "链路追踪编号", required = true, example = "89aca178-a370-411c-ae02-3f0d672be4ab")
|
||||
@ApiModelProperty(value = "链路追踪编号", example = "89aca178-a370-411c-ae02-3f0d672be4ab")
|
||||
private String traceId;
|
||||
|
||||
@ApiModelProperty(value = "用户编号", required = true, example = "1024")
|
||||
|
||||
@@ -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) {
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user