package com.sptg.gateway.controller.iot;

import com.baomidou.mybatisplus.plugins.Page;
import com.sptg.common.core.beans.ResultBean;
import com.sptg.iot.api.dto.IotDeviceDto;
import com.sptg.iot.api.entity.IotApiLog;
import com.sptg.iot.api.entity.IotDevice;
import com.sptg.iot.api.feigns.IotApiLogFeign;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Slf4j
@RestController
@AllArgsConstructor
@RequestMapping(value = "/grid/iot/apiLog")
public class IotApiLogController {

    private final IotApiLogFeign iotApiLogFeign;


    @GetMapping(value = "/list")
    public List<IotApiLog> list(IotDeviceDto iotDeviceDto, Page<IotDevice> page) {
        // 暂时拿全部的数据
//        iotDeviceDto.setOrgPosition("0/1/");
//        page.setSize(900000000);
//        iotDeviceDto.setPage(page);
//        List<IotApiLog> list = this.iotApiLogFeign.pag();
        return null;
    }
    
}
