package com.inspect.ivs.base.feign;

import com.alibaba.fastjson.JSONObject;
import com.inspect.base.core.domain.Response;
import com.inspect.ivs.base.feign.view.SipbDeviceListView;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("inspect-ivs")
public interface IvsFeign {
   @GetMapping({"/session/fresh"})
   Response freshSession();

   @GetMapping({"/api/v1/device/channellist"})
   SipbDeviceListView channelList();

   @GetMapping({"/api/v1/device/channellistJson"})
   JSONObject channelListJson(@RequestParam("sipbDeviceChannelListVo") JSONObject sipbDeviceChannelListVo);
}
