潘志宝
5 天以前 7fce3006ecd0b670e33c2d3ba123778e79e2e943
提交 | 用户 | 时间
e7c126 1 package com.iailab.module.infra.api.logger;
H 2
3 import com.iailab.framework.common.pojo.CommonResult;
4 import com.iailab.module.infra.api.logger.dto.ApiAccessLogCreateReqDTO;
5 import com.iailab.module.infra.service.logger.ApiAccessLogService;
6 import org.springframework.validation.annotation.Validated;
7 import org.springframework.web.bind.annotation.RestController;
8
9 import javax.annotation.Resource;
10
11 import static com.iailab.framework.common.pojo.CommonResult.success;
12
13 @RestController // 提供 RESTful API 接口,给 Feign 调用
14 @Validated
15 public class ApiAccessLogApiImpl implements ApiAccessLogApi {
16
17     @Resource
18     private ApiAccessLogService apiAccessLogService;
19
20     @Override
21     public CommonResult<Boolean> createApiAccessLog(ApiAccessLogCreateReqDTO createDTO) {
22         apiAccessLogService.createApiAccessLog(createDTO);
23         return success(true);
24     }
25
26 }