using Entity.DbModel.Station;
using Entity.Dto.Req;
using HybirdFrameworkCore.Entity;
using Microsoft.AspNetCore.Mvc;
using Service.Station;
namespace WebStarter.Controllers;
///
/// 设备信息表
///
[ApiController]
[Route("api/[controller]")]
public class EquipInfoController
{
private readonly EquipInfoService _equipInfoService;
///
/// 设备信息表
///
///
public EquipInfoController(EquipInfoService equipInfoService)
{
_equipInfoService = equipInfoService;
}
///
/// 设备信息分页列表
///
///
///
[HttpPost]
[Route("page")]
public async Task>> Page(PageEquipInfoReq input)
{
return Result>.Success(await _equipInfoService.Page(input));
}
///
/// 设备信息增加
///
///
[HttpPost]
[Route("add")]
public async Task> Add(AddEquipInfoReq input)
{
return await _equipInfoService.AddEquipInfo(input);
}
///
/// 设备信息修改
///
///
[HttpPost]
[Route("update")]
public async Task> Update(UpdateEquipInfoReq input)
{
return await _equipInfoService.UpdateEquipInfo(input);
}
///
/// 设备信息修改删除
///
///
[HttpPost]
[Route("delete")]
public async Task> Delete(DeleteEquipInfoReq input)
{
return await _equipInfoService.DeleteEquipInfo(input);
}
}