RemoteCustomerService.java 534 Bytes
package com.huaheng.config.api;

import com.huaheng.common.core.constant.ServiceNameConstants;
import com.huaheng.config.api.domain.Customer;
import com.huaheng.config.api.factory.RemoteLocationFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;

import java.util.function.Consumer;

@FeignClient(contextId = "remoteCustomerService", value = ServiceNameConstants.CONFIG_SERVICE, fallbackFactory = RemoteLocationFallbackFactory.class)
public interface RemoteCustomerService {

    Customer getCode(String code);
}