package com.hdkj.lt.mq.controller;


import com.hdkj.lt.modle.dto.wholeStation.Scheme;
import com.hdkj.lt.mq.service.wholeStation.FhzgWholeStationPowerCutTempService;
import com.hdkj.hussar.ApiResponse;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Slf4j
@RestController
@RequestMapping("/FhzgWholeStationPowerCut")
@RequiredArgsConstructor
public class FhzgWholeStationPowerCutTempController {
    private final FhzgWholeStationPowerCutTempService wholeStationPowerCutTempService;

    /**
     * 解析整站停电方案信息（测试）
     **/
    @PostMapping("/dealWithWholeStationScheme")
    @ApiOperation(value = "获取调优数据")
    public ApiResponse<Boolean> dealWithWholeStationScheme(@RequestBody List<Scheme> schemeList) {
        wholeStationPowerCutTempService.dealWithWholeStationScheme(schemeList);
        return ApiResponse.success();
    }
}
