package com.usky.cdi.controller.api;

import com.usky.cdi.RemotecdiTaskService;
import com.usky.cdi.service.impl.IotDataTransferService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  数据统一查询 前端控制器
 * </p>
 *
 * @author f
 */
@RestController
public class RemotecdiTaskApi implements RemotecdiTaskService {

    @Autowired
    private IotDataTransferService iotDataTransferService;

    @Override
    public void synchronizeDeviceData(Integer tenantId, Long engineeringId, String username, String password) {
        iotDataTransferService.synchronizeDeviceData(tenantId, engineeringId, username, password);
    }

    @Override
    public void allData(Long engineeringId, String username, String password) {
        iotDataTransferService.allData(engineeringId, username, password);
    }
}