RemoteWaveMasterService.java 825 Bytes
package com.huaheng.config.api;

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

import java.util.List;

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

    @GetMapping("/config/waveMaster/getCode")
    WaveMaster getCode(String code);

    @GetMapping("//config/waveMaster/getByWarehouseCode")
    List<WaveMaster> getByWarehouseCode(String warehouseCode);
}