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 EquipNetInfoController { private readonly EquipNetInfoService _equipNetInfoService; /// /// 设备通信信息表 /// /// public EquipNetInfoController(EquipNetInfoService equipNetInfoService) { _equipNetInfoService = equipNetInfoService; } /// /// 设备通信分页列表 /// /// /// [HttpPost] [Route("page")] public async Task>> Page(PageEquipNetInfoReq input) { return Result>.Success(await _equipNetInfoService.Page(input)); } /// /// 设备通信增加 /// /// [HttpPost] [Route("add")] public async Task Add(AddEquipNetInfoReq input) { await _equipNetInfoService.AddEquipNetInfo(input); } /// /// 设备通信修改 /// /// [HttpPost] [Route("update")] public async Task Update(UpdateEquipNetInfoReq input) { await _equipNetInfoService.UpdateEquipNetInfo(input); } /// /// 设备通信修改删除 /// /// [HttpPost] [Route("delete")] public async Task Delete(DeleteEquipNetInfoReq input) { await _equipNetInfoService.DeleteEquipNetInfo(input); } }