using BPA.SAAS.Manage.Application.Device.Dtos.WarehouseTemplate; using BPA.SAAS.Manage.Application.Device.Interface; using BPA.SAAS.Manage.Core.Base; using Microsoft.AspNetCore.Components.Forms; 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 WarehouseTemplateServices : IDynamicApiController, ITransient { IWarehouseTemplateService _warehouseTemplateService; public WarehouseTemplateServices(IWarehouseTemplateService warehouseTemplateService) { _warehouseTemplateService=warehouseTemplateService; } /// /// 分页查询 /// /// /// [HttpPost("/api/warehousetemplate/page")] public async Task GetWarehouseTemplatePage(WarehouseTemplateQueryInputDto inputDto) { return await _warehouseTemplateService.GetWarehouseTemplatePage(inputDto); } [HttpGet("/api/warehousetemplate/list")] public async Task> GetWarehouseTemplateList(string deviceId) { return await _warehouseTemplateService.GetWarehouseTemplateList(deviceId); } /// /// 添加 /// /// /// [HttpPost("/api/warehousetemplate/add")] public async Task AddWarehouseTemplate(WarehouseTemplatDto inputDto) { return await _warehouseTemplateService.AddWarehouseTemplate(inputDto); } /// /// 删除 /// /// /// [HttpPost("/api/warehousetemplate/del")] public async Task DeWarehouseTemplate(List inputList) { return await _warehouseTemplateService.DeWarehouseTemplate(inputList); } /// /// 更新 /// /// /// [HttpPost("/api/warehousetemplate/update")] public async Task UpdateWarehouseTemplate(WarehouseTemplatDto inputDto) { return await _warehouseTemplateService.UpdateWarehouseTemplate(inputDto); } } }