using Entity.Api.Req;
using Entity.DbModel.Station;
using HybirdFrameworkCore.Entity;
using Microsoft.AspNetCore.Mvc;
using Service.Station;
namespace WebStarter.Controllers;
///
/// 换电设备报警
///
[ApiController]
[Route("api/[controller]")]
public class EquipAlarmRecordController : ControllerBase
{
private readonly EquipAlarmRecordService equipAlarmRecordService;
public EquipAlarmRecordController(EquipAlarmRecordService equipAlarmRecordService)
{
this.equipAlarmRecordService = equipAlarmRecordService;
}
///
/// 查询未处理报警列表
///
/// 设备类型:-1-查询全部;0-充电机;1-电表;2-水冷机;3-plc<
/// 设备编码
///
[HttpPost("/QueryEquipAlarmPage")]
public Result> QueryEquipAlarmPage([FromBody] QueryAlarmReq req)
{
return equipAlarmRecordService.QueryEquipAlarmPage(req);
}
///
/// 查询已处理报警列表
///
/// 设备类型:-1-查询全部;0-充电机;1-电表;2-水冷机;3-plc
/// 设备编码
///
[HttpPost("/QueryEquipAlarmProcessPage")]
public Result> QueryEquipAlarmProcessPage([FromBody] QueryAlarmReq req)
{
return equipAlarmRecordService.QueryEquipAlarmProcessPage(req);
}
}