提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.framework.apilog.core.service; |
H |
2 |
|
|
3 |
import com.iailab.module.infra.api.logger.ApiErrorLogApi; |
|
4 |
import com.iailab.module.infra.api.logger.dto.ApiErrorLogCreateReqDTO; |
|
5 |
import lombok.RequiredArgsConstructor; |
|
6 |
import org.springframework.scheduling.annotation.Async; |
|
7 |
|
|
8 |
/** |
|
9 |
* API 错误日志 Framework Service 实现类 |
|
10 |
* |
|
11 |
* 基于 {@link ApiErrorLogApi} 服务,记录错误日志 |
|
12 |
* |
|
13 |
* @author iailab |
|
14 |
*/ |
|
15 |
@RequiredArgsConstructor |
|
16 |
public class ApiErrorLogFrameworkServiceImpl implements ApiErrorLogFrameworkService { |
|
17 |
|
|
18 |
private final ApiErrorLogApi apiErrorLogApi; |
|
19 |
|
|
20 |
@Override |
|
21 |
@Async |
|
22 |
public void createApiErrorLog(ApiErrorLogCreateReqDTO reqDTO) { |
|
23 |
apiErrorLogApi.createApiErrorLog(reqDTO); |
|
24 |
} |
|
25 |
|
|
26 |
} |