package com.base.api.client;

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

import java.util.Date;
import java.util.List;

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

    @PostMapping("/rpc/trbut/list")
    public List<TrbutDataRpcDTO> selTrButData(CxStationRpcDTO cxStationRpcDTO);

    @PostMapping("/rpc/trbut/getTrbutDataList")
    public List<TrbutDataRpcDTO> getTrbutDataList(@RequestParam("observationStartTime") Date observationStartTime, @RequestParam("observationEndTime") Date observationEndTime);

    @PostMapping("/rpc/trbut/selTrButDataByCode")
    public List<TrbutDataRpcDTO> selTrButDataByCode(@RequestParam("satelliteCode") String satelliteCode);

}
