提交 | 用户 | 时间
|
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.enums.ApiConstants; |
|
6 |
import io.swagger.v3.oas.annotations.tags.Tag; |
|
7 |
import io.swagger.v3.oas.annotations.Operation; |
|
8 |
import org.springframework.cloud.openfeign.FeignClient; |
|
9 |
import org.springframework.web.bind.annotation.PostMapping; |
|
10 |
import org.springframework.web.bind.annotation.RequestBody; |
|
11 |
|
|
12 |
import javax.validation.Valid; |
|
13 |
|
|
14 |
@FeignClient(name = ApiConstants.NAME) // TODO iailab:fallbackFactory = |
|
15 |
@Tag(name = "RPC 服务 - API 访问日志") |
|
16 |
public interface ApiAccessLogApi { |
|
17 |
|
|
18 |
String PREFIX = ApiConstants.PREFIX + "/api-access-log"; |
|
19 |
|
|
20 |
@PostMapping(PREFIX + "/create") |
|
21 |
@Operation(summary = "创建 API 访问日志") |
|
22 |
CommonResult<Boolean> createApiAccessLog(@Valid @RequestBody ApiAccessLogCreateReqDTO createDTO); |
|
23 |
|
|
24 |
} |