package com.usky.demo.controller.web;

import com.usky.common.core.bean.ApiResult;
import com.usky.demo.domain.DeviceDataWriteVO;
import com.usky.demo.service.QueryInfluxdbDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @Author :
 * @CreateTime : 2024/2/29
 * @Description :
 **/
@RestController
@RequestMapping("/dataWrite")
public class SendMessageController {
//    @Autowired
//    private QueryInfluxdbDataService queryInfluxdbDataService;
//
//    /**
//     * 单个设备数据写入
//     * @return
//     */
//    @PostMapping("/sendDeviceData")
//    public ApiResult<Map<String,Object>> sendDeviceData(@RequestBody DeviceDataWriteVO writeVO){
//        return ApiResult.success(queryInfluxdbDataService.sendDeviceData(writeVO));
//    }

}