提交 | 用户 | 时间
|
a6de49
|
1 |
package com.iailab.module.infra.api.config; |
H |
2 |
|
325d2f
|
3 |
import com.iailab.framework.common.pojo.CommonResult; |
a6de49
|
4 |
import com.iailab.module.infra.enums.ApiConstants; |
H |
5 |
import io.swagger.v3.oas.annotations.Operation; |
|
6 |
import io.swagger.v3.oas.annotations.tags.Tag; |
|
7 |
import org.springframework.cloud.openfeign.FeignClient; |
|
8 |
import org.springframework.web.bind.annotation.*; |
|
9 |
|
325d2f
|
10 |
@FeignClient(name = ApiConstants.NAME) // TODO 芋艿:fallbackFactory = |
H |
11 |
@Tag(name = "RPC 服务 - 参数配置") |
a6de49
|
12 |
public interface ConfigApi { |
H |
13 |
|
325d2f
|
14 |
String PREFIX = ApiConstants.PREFIX + "/config"; |
H |
15 |
|
|
16 |
@GetMapping(PREFIX + "/get-value-by-key") |
|
17 |
@Operation(summary = "根据参数键查询参数值") |
|
18 |
CommonResult<String> getConfigValueByKey(@RequestParam("key") String key); |
a6de49
|
19 |
|
H |
20 |
} |