using BPA.SAAS.Manage.Application.Device.Dtos.Device; using BPA.SAAS.Manage.Application.Device.Interface; using BPA.SAAS.Manage.Comm.Model; using BPA.SAAS.Manage.Core.Base; using Microsoft.AspNetCore.Components.Forms; using NPOI.Util; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BPA.SAAS.Manage.Application.Device { [ApiDescriptionSettings("Device", Tag = "设备基础信息管理")] public class DeviceServices: IDynamicApiController, ITransient { IDeviceService _deviceService; public DeviceServices(IDeviceService deviceService) { _deviceService=deviceService; } /// /// 分页查询 /// /// /// [HttpPost("/api/device/page")] public async Task GetDeviceInfoPage(DeviceQueryInputDto inputDto) { return await _deviceService.GetDeviceInfoPage(inputDto); } /// /// 查询设备列表 /// /// [HttpGet("/api/device/list")] public async Task> GetDeviceList() { return await _deviceService.GetDeviceList(); } [HttpGet("/api/device/getdevicebystoplist")] public async Task> GetDeviceByStopList(string stopId) { return await _deviceService.GetDeviceByStopList(stopId); } /// /// 添加 /// /// /// [HttpPost("/api/device/add")] public async Task AddDevice(DeviceInfoBaseDto inputDto) { return await _deviceService.AddDevice(inputDto); } /// /// 修改 /// /// /// [HttpPost("/api/device/update")] public async Task UpdateDevice(DeviceInfoBaseDto inputDto) { return await _deviceService.UpdateDevice(inputDto); } /// /// 删除 /// /// /// [HttpPost("/api/device/delete")] public async Task DelDeviceInfo(List inputList) { return await _deviceService.DelDeviceInfo(inputList); } /// /// 添加设备标签 /// /// /// [HttpPost("/api/device/adddevicetype")] public async Task AddDeviceTypeAsync(DeviceTypeBaseDto inputDto) { return await _deviceService.AddDeviceTypeAsync(inputDto); } /// /// 查询设备标签 /// /// [HttpGet("/api/device/getdevicetypelist")] public async Task> GetDeviceTypeList() { return await _deviceService.GetDeviceTypeList(); } } }