RemoteWaveMasterService.java 1.01 KB
package com.huaheng.config.api;

import com.huaheng.common.core.config.FeignTokenInterceptor;
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 org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

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

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

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