You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
928 B

using Entity.DbModel.Station;
using Entity.Dto.Req;
using Entity.Dto.Resp;
using HybirdFrameworkCore.Entity;
using Microsoft.AspNetCore.Mvc;
using Service.Station;
namespace WebStarter.Controllers.Test;
[ApiController]
[Route("api/[controller]")]
public class SysRunningFaultController
{
private readonly SysRunningFaultService _sysRunningFaultService;
public SysRunningFaultController(SysRunningFaultService sysRunningFaultService)
{
_sysRunningFaultService = sysRunningFaultService;
}
/// <summary>
/// 查询系统设备运行时故障
/// </summary>
/// <param name="inputPage">每页显示多少条</param>
/// <returns></returns>
[HttpPost]
[Route("page")]
public async Task<Result<PageResult<SysRunningFault>>> Page(int inputPage)
{
return Result<PageResult<SysRunningFault>>.Success(await _sysRunningFaultService.Page(inputPage));
}
}