namespace Win_in.Sfs.Wms.Pda.Controllers.Inventories; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Volo.Abp.AspNetCore.Mvc; using Win_in.Sfs.Label.Application.Contracts; /// /// 采购标签控制器 /// [ApiController] [Route($"{PdaHostConst.ROOT_ROUTE}label/inventorylabel")] public class InventoryLabelController : AbpController { private readonly IInventoryLabelAppService _labelAppService; /// /// /// /// public InventoryLabelController( IInventoryLabelAppService labelAppService) { this._labelAppService = labelAppService; } /// /// 按标签号获取采购标签 /// /// 标签号 /// [HttpGet("by-code")] public virtual async Task GetByCode(string code) { return await _labelAppService.GetByCodeAsync(code).ConfigureAwait(false); } }