package com.base.api.client;

import com.base.api.model.InstanceRpcDTO;
import com.base.api.model.request.UpdateSatelliteRpcDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient(name = "orbit-base-biz",contextId = "instance")
public interface InstanceRpcService {

    @RequestMapping(value = "/rpc/instance/list", method = RequestMethod.GET)
    public List<InstanceRpcDTO> queryNewestInstance();


    @RequestMapping(value = "/rpc/instance/getListBySatelliteCode", method = RequestMethod.GET)
    public List<InstanceRpcDTO> getListBySatelliteCode(List<String> satelliteCodes);

    @RequestMapping(value = "/rpc/instance/deleteBySatelliteCode", method = RequestMethod.GET)
    public void deleteBySatelliteCode(String satelliteCode);


    @PostMapping("/rpc/instance/save")
    public void save(@RequestBody InstanceRpcDTO req);
}
