package com.iailab.module.ansteel.api.controller; import com.iailab.framework.common.pojo.CommonResult; import com.iailab.module.model.api.mcs.AnSteelApi; import com.iailab.module.sms.api.dto.PowerRunStateDTO; import io.swagger.v3.oas.annotations.tags.Tag; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import java.util.List; import java.util.Map; import static com.iailab.framework.common.pojo.CommonResult.success; /** * @author: lirm * @date: 2025/03/17 **/ @Tag(name = "发电厂机组运行情况") @RestController @RequestMapping("/mcs/power-run-state") public class McsController { @Autowired private AnSteelApi anSteelApi; @GetMapping("list") public CommonResult> list(@RequestParam Map params) { List list = anSteelApi.getPowerRunState(); return success(list); } }