You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.9 KiB
64 lines
1.9 KiB
using System;
|
|
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;
|
|
|
|
/// <summary>
|
|
///三方库库移请求
|
|
/// </summary>
|
|
[ApiController]
|
|
[Route($"{PdaHostConst.ROOT_ROUTE}store/third-location-request")]
|
|
|
|
public class ThirdLocationRequestController : AbpController
|
|
{
|
|
private readonly IThirdLocationRequestAppService _thirdLocationRequestAppService;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="ThirdLocationRequestAppService"></param>
|
|
public ThirdLocationRequestController(IThirdLocationRequestAppService ThirdLocationRequestAppService)
|
|
{
|
|
_thirdLocationRequestAppService = ThirdLocationRequestAppService;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 三方库库移申请
|
|
/// </summary>
|
|
/// <param name="input"></param>
|
|
/// <returns></returns>
|
|
[HttpPost("")]
|
|
public virtual async Task CreateAsync(ThirdLocationRequestEditInput input)
|
|
{
|
|
_ = await _thirdLocationRequestAppService.CreateAsync(input).ConfigureAwait(false);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 根据number获取三方库库移申请详情
|
|
/// </summary>
|
|
/// <param name="number"></param>
|
|
/// <returns></returns>
|
|
[HttpGet("{number}")]
|
|
|
|
public virtual async Task<ActionResult<ThirdLocationRequestDTO>> GetAsync(string number)
|
|
{
|
|
var result = await _thirdLocationRequestAppService.GetByNumberAsync(number).ConfigureAwait(false);
|
|
return Ok(result);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 取消三方库请求
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
[HttpPost("cancel/{id}")]
|
|
public virtual async Task<ActionResult<ThirdLocationRequestDTO>> CancelAsync(Guid id)
|
|
{
|
|
var result = await _thirdLocationRequestAppService.CancelAsync(id).ConfigureAwait(false);
|
|
return Ok(result);
|
|
}
|
|
|
|
}
|
|
|