package com.yeejoin.amos.boot.module.common.api.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.typroject.tyboot.core.restful.utils.ResponseModel;

import java.util.List;
import java.util.Map;

/**
 * iot feign
 *
 * @author Dell
 */
@FeignClient(name = "AMOS-API-IOT-PLATFORM", path = "iot", configuration = {MultipartSupportConfig.class})
public interface IotFeignClient {

      
    /**
     * 根据航班号查询航班信息
     **/
    @RequestMapping(value = "/v1/iot/DynamicFlightInfo/{flightNo}", method = RequestMethod.GET)
    ResponseModel<Map<String, Object>> getDynamicFlightInfo(@PathVariable String flightNo);


    @RequestMapping(value = "/v1/iot/DynamicFlightInfo/list", method = RequestMethod.GET)
    ResponseModel<List<Map<String, Object>>> findImgByFileCategory();
    
}
