|
|
package com.sunyo.wlpt.data.warehouse.feign;
|
|
|
|
|
|
import com.sunyo.wlpt.data.warehouse.commons.ResultExitData;
|
|
|
import org.springframework.cloud.openfeign.FeignClient;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
|
* @author 子诚
|
|
|
* Description:
|
|
|
* 时间:2020/5/25 9:48
|
|
|
*/
|
|
|
//@Component
|
|
|
//@FeignClient(value = "cgonms-provide", fallback = GetCgoNmsFeignHystrix.class)
|
|
|
public interface GetCgoNmsFeign {
|
|
|
/**
|
|
|
* 根据航班日期、航班号,获取出出港业务统计数据
|
|
|
*
|
|
|
* @param flightDate 航班日期
|
|
|
* @param flightNo 航班号
|
|
|
* @return {@link ResultExitData}
|
|
|
*/
|
|
|
@GetMapping("/cgonms/getInfo")
|
|
|
public List<ResultExitData> getData(
|
|
|
@RequestParam(value = "flightDate", required = false) Date flightDate,
|
|
|
@RequestParam(value = "flightNo", required = false) String flightNo);
|
|
|
} |