org.openea.eap.module.infra.api.config.ConfigApi Maven / Gradle / Ivy
The newest version!
package org.openea.eap.module.infra.api.config;
import org.openea.eap.framework.common.pojo.CommonResult;
import org.openea.eap.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.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
@FeignClient(name = ApiConstants.NAME) // TODO 芋艿:fallbackFactory =
@Tag(name = "RPC 服务 - 参数配置")
public interface ConfigApi {
String PREFIX = ApiConstants.PREFIX + "/config";
@GetMapping(PREFIX + "/get-value-by-key")
@Operation(summary = "根据参数键查询参数值")
CommonResult getConfigValueByKey(@RequestParam("key") String key);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy