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