package com.usky.ems.controller.web;

import com.usky.common.core.bean.ApiResult;
import com.usky.ems.service.EnergyDataService;
import com.usky.ems.service.vo.EnergyDataRequestVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/energy-data")
public class EnergyDataController {

    @Autowired
    private EnergyDataService energyDataService;


    @GetMapping("sendEnergyData")
    public ApiResult<Void> sendData() {
        energyDataService.sendEnergyData();
        return ApiResult.success();

    }
}
