RemoteMaterialWarningService.java
642 Bytes
package com.huaheng.config.api;
import com.huaheng.common.core.constant.ServiceNameConstants;
import com.huaheng.config.api.domain.MaterialWarning;
import com.huaheng.config.api.factory.RemoteMaterialFallFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import java.util.List;
@FeignClient(contextId = "RemoteMaterialWarningService", value = ServiceNameConstants.CONFIG_SERVICE, fallbackFactory = RemoteMaterialFallFactory.class)
public interface RemoteMaterialWarningService{
@GetMapping("/materialWarning/getAll")
List<MaterialWarning> getAll();
}