| | |
| | | package com.iailab.module.infra.api.config; |
| | | |
| | | import com.iailab.framework.common.pojo.CommonResult; |
| | | import com.iailab.module.infra.enums.ApiConstants; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | @FeignClient(name = ApiConstants.NAME) |
| | | @Tag(name = "配置文件") |
| | | @FeignClient(name = ApiConstants.NAME) // TODO 芋艿:fallbackFactory = |
| | | @Tag(name = "RPC 服务 - 参数配置") |
| | | public interface ConfigApi { |
| | | |
| | | String PREFIX = ApiConstants.PREFIX + "/config"; |
| | | |
| | | @Operation(summary = "Feign接口-查询配置参数") |
| | | @GetMapping("/api/feign/infra-config/{configCode}") |
| | | String queryConfigByCode(@PathVariable("configCode") String configCode); |
| | | |
| | | |
| | | @GetMapping(PREFIX + "/get-value-by-key") |
| | | @Operation(summary = "根据参数键查询参数值") |
| | | CommonResult<String> getConfigValueByKey(@RequestParam("key") String key); |
| | | |
| | | } |