package com.base.api.client;

import com.base.api.model.AstronomicalForecastRpcDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "orbit-base-track",contextId = "astronomical")
public interface AstronomicalForecastRpcService {

    @PostMapping(value = "/astronomical/list")
    public List<AstronomicalForecastRpcDTO> getAstronomicalForecastList(@RequestParam("satelliteIdList")List<String> satelliteIdList, @RequestParam("stationIdList")List<String> stationIdList, @RequestParam("startTime")String startTime, @RequestParam("endTime")String endTime, @RequestParam("astroEvent")String astroEvent);
}