using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Volo.Abp.AspNetCore.Mvc; using Win_in.Sfs.Wms.Store.Application.Contracts; namespace Win_in.Sfs.Wms.Pda.Controllers.Stores; /// /// 注塑叫料请求 /// [ApiController] [Route($"{PdaHostConst.ROOT_ROUTE}store/injection-request")] public class InjectionRequestController : AbpController { private readonly IInjectionRequestAppService _injectionRequestAppService; /// /// /// /// public InjectionRequestController(IInjectionRequestAppService InjectionRequestAppService) { _injectionRequestAppService = InjectionRequestAppService; } /// /// 注塑叫料申请 /// /// /// [HttpPost("")] public virtual async Task CreateAsync(InjectionRequestEditInput input) { _ = await _injectionRequestAppService.CreateAsync(input).ConfigureAwait(false); } /// /// 根据number获取注塑叫料申请详情 /// /// /// [HttpGet("{number}")] public virtual async Task> GetAsync(string number) { var result = await _injectionRequestAppService.GetByNumberAsync(number).ConfigureAwait(false); return Ok(result); } }