You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.6 KiB
C#

using DS.Module.Core;
using DS.WMS.Core.WmsModule.Dtos;
using DS.WMS.Core.WmsModule.Interface;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.WebApi.Controllers;
/// <summary>
/// 查询模块
/// </summary>
public class StoreQueryController : ApiController
{
private readonly IStoreQueryService _invokeService;
/// <summary>
/// 构造函数
/// </summary>
/// <param name="invokeService"></param>
public StoreQueryController(IStoreQueryService invokeService)
{
_invokeService = invokeService;
}
/// <summary>
/// 查询仓库库存
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[HttpPost]
[Route("GetWmsStoreList")]
public DataResult<List<WmsStoreListPagModel>> GetWmsStoreList([FromBody] PageRequest request)
{
var res = _invokeService.GetWmsStoreList(request);
return res;
}
/// <summary>
/// 入库明细
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[HttpPost]
[Route("GetWmsInDoList")]
public DataResult<List<WmsStoreInDoListPagModel>> GetWmsInDoList([FromBody] PageRequest request)
{
var res = _invokeService.GetWmsInDoList(request);
return res;
}
/// <summary>
/// 出库明细
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[HttpPost]
[Route("GetWmsOutDoList")]
public DataResult<List<WmsStoreOutDoListPagModel>> GetWmsOutDoList([FromBody] PageRequest request)
{
var res = _invokeService.GetWmsOutDoList(request);
return res;
}
}