package com.yuchen.saas.integration.feign.api.feign;


import com.yuchen.saas.integration.feign.api.vo.*;
import org.nest.springwrap.core.tool.api.R;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

@Component
public class CommonHikClientFallback implements CommonHikClient {
    @Override
    public <T> R<T> commonHikMethod(Map<String, Object> body) {
        return R.fail("数据返回失败");
    }

    @Override
    public R pmsDeviceControl(@RequestBody DeviceControlVo deviceControlVo) {
        return R.fail("操作失败");
    }

    @Override
    public R pmsLedControl(LedControlVo ledControlVo) {
        return R.fail("操作失败");
    }

    @Override
    public R pmsVoiceControl(VoiceControlVo voiceControl) {
        return R.fail("操作失败");
    }

    @Override
    public R getEntranceList(EntranceVo entranceVo) {
        return R.fail("数据返回失败");
    }

    @Override
    public R getRoadwayList(RoadwayVo roadwayVo) {
        return R.fail("数据返回失败");
    }
}
