package com.iailab.module.ansteel.mpk.controller;
|
|
import com.iailab.framework.common.pojo.CommonResult;
|
import com.iailab.module.ansteel.mpk.entity.PowerRunStateEntity;
|
import com.iailab.module.ansteel.mpk.service.PowerRunStateService;
|
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("/mpk/power-run-state")
|
public class PowerRunStateController {
|
|
@Autowired
|
private PowerRunStateService powerRunStateService;
|
|
@GetMapping("list")
|
public CommonResult<List<PowerRunStateEntity>> list(@RequestParam Map<String, Object> params) {
|
List<PowerRunStateEntity> list = powerRunStateService.list();
|
return success(list);
|
}
|
|
}
|