package com.sptg.third.api.feigns.grid;

import com.sptg.common.core.beans.ResultBean;
import com.sptg.third.api.feigns.grid.fallback.GridVideoCloudFeignFallbackFactory;
import com.sptg.video.cloud.api.entity.VCAccount;
import com.sptg.video.cloud.api.entity.VCDevice;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author zwx
 * @create 2020/11/28 19:40
 */
@FeignClient(value = "smart-house-third", fallbackFactory = GridVideoCloudFeignFallbackFactory.class)
public interface GridVideoCloudFeign {

    /**
     * 增量推送账号到网格
     * @return
     */
    @PostMapping(value = "/third/grid/videoCloud/account/increment/push")
    public ResultBean<String> gridVideoCloudAccountIncrementPush();

    /**
     * 全量推送账号到网格
     * @return
     */
    @PostMapping(value = "/third/grid/videoCloud/account/total/push")
    public ResultBean<String> gridVideoCloudAccountTotalPush();

    /**
     * 增量推送监控设备到网格
     * @return
     */
    @PostMapping(value = "/third/grid/videoCloud/device/increment/push")
    public ResultBean<String> gridVideoCloudDeviceIncrementPush();

    /**
     * 增量推送监控设备到网格
     * @return
     */
    @PostMapping(value = "/third/grid/videoCloud/device/total/push")
    public ResultBean<String> gridVideoCloudDeviceTotalPush();
}
