RemoteConfigValueService.java 648 Bytes
package com.huaheng.config.api;

import com.huaheng.common.core.constant.ServiceNameConstants;
import com.huaheng.config.api.domain.ConfigValue;
import com.huaheng.config.api.factory.RemoteConfigValueFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(contextId = "RemoteConfigValueService", value = ServiceNameConstants.CONFIG_SERVICE, fallbackFactory = RemoteConfigValueFallbackFactory.class)
public interface RemoteConfigValueService {

    @GetMapping("/configValue/getConfigByModuleType")
    ConfigValue getConfigByModuleType(String moduleType);
}