package com.securitycontrol.system.api;

import com.securitycontrol.common.core.constant.SecurityConstants;
import com.securitycontrol.common.core.constant.ServiceNameConstants;
import com.securitycontrol.common.core.domain.Result;
import com.securitycontrol.system.api.factory.RemoteProteamFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * @author HeiZi
 */
@FeignClient(contextId = "proteamService", value = ServiceNameConstants.PROTEAM_SERVICE, fallbackFactory = RemoteProteamFallbackFactory.class)
public interface RemoteProteamService {

    /**
     * 未知的的方法
     * @param source
     * @return
     */
    @GetMapping("/tEquipment/asyncDeviceList")
    Result<Object> asyncDeviceList(@RequestHeader(SecurityConstants.FROM_SOURCE) String source);

    /**
     *未知的的方法
     * @param source
     * @return
     */
    @GetMapping("/tEquipment/catchPicture")
    Result<Object> catchPicture(@RequestHeader(SecurityConstants.FROM_SOURCE) String source);

    /**
     *未知的的方法
     * @param source
     * @return
     */
    @GetMapping("/tEquipment/downloadPic")
    Result<Object> downloadPic(@RequestHeader(SecurityConstants.FROM_SOURCE) String source);

}
