org.openea.eap.module.infra.api.logger.ApiAccessLogApi Maven / Gradle / Ivy
The newest version!
package org.openea.eap.module.infra.api.logger;
import org.openea.eap.framework.common.pojo.CommonResult;
import org.openea.eap.module.infra.api.logger.dto.ApiAccessLogCreateReqDTO;
import org.openea.eap.module.infra.enums.ApiConstants;
import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import javax.validation.Valid;
@FeignClient(name = ApiConstants.NAME) // TODO 芋艿:fallbackFactory =
@Tag(name = "RPC 服务 - API 访问日志")
public interface ApiAccessLogApi {
String PREFIX = ApiConstants.PREFIX + "/api-access-log";
@PostMapping(PREFIX + "/create")
@Operation(summary = "创建 API 访问日志")
CommonResult createApiAccessLog(@Valid @RequestBody ApiAccessLogCreateReqDTO createDTO);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy