RemoteMaterialWarningService.java 914 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 org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

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


    @GetMapping("/materialWarning/getAll")
    List<MaterialWarning> getAll();

    @GetMapping("/materialWarning/getByCodeAndType")
    List<MaterialWarning> getByCodeAndType(@RequestParam(value = "materialCode") String materialCode, @RequestParam(value = "materialType") String materialType);
}