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.
74 lines
2.0 KiB
C#
74 lines
2.0 KiB
C#
1 year ago
|
using DS.Module.Core;
|
||
|
using DS.WMS.Core.BaseInfo.Dtos;
|
||
|
using DS.WMS.Core.BaseInfo.Interface;
|
||
|
using DS.WMS.Core.System.Dtos;
|
||
|
using DS.WMS.Core.System.Entity;
|
||
|
using Microsoft.AspNetCore.Mvc;
|
||
|
|
||
|
namespace DS.WMS.WebApi.Controllers;
|
||
|
/// <summary>
|
||
|
/// 库位位置服务
|
||
|
/// </summary>
|
||
|
public class WmsStoreAreaPositionController : ApiController
|
||
|
{
|
||
|
private readonly IWmsStoreAreaPositionService _invokeService;
|
||
|
/// <summary>
|
||
|
/// 构造函数
|
||
|
/// </summary>
|
||
|
/// <param name="invokeService"></param>
|
||
|
public WmsStoreAreaPositionController(IWmsStoreAreaPositionService invokeService)
|
||
|
{
|
||
|
_invokeService = invokeService;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 列表
|
||
|
/// </summary>
|
||
|
/// <param name="request"></param>
|
||
|
/// <returns></returns>
|
||
|
[HttpPost]
|
||
|
[Route("GetAreaPositionList")]
|
||
|
public DataResult<List<StoreAreaPositionViewModel>> GetAreaPositionList([FromBody] PageRequest request)
|
||
|
{
|
||
|
var res = _invokeService.GetListByPage(request);
|
||
|
return res;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 编辑
|
||
|
/// </summary>
|
||
|
/// <param name="model"></param>
|
||
|
/// <returns></returns>
|
||
|
[HttpPost]
|
||
|
[Route("EditAreaPositionInfo")]
|
||
|
public DataResult EditStoreAreaPositionInfo([FromBody] StoreAreaPositionInput model)
|
||
|
{
|
||
|
var res = _invokeService.EditStoreAreaPositionInfo(model);
|
||
|
return res;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 详情
|
||
|
/// </summary>
|
||
|
/// <param name="id"></param>
|
||
|
/// <returns></returns>
|
||
|
[HttpGet]
|
||
|
[Route("GetAreaPositionInfo")]
|
||
|
public DataResult<StoreAreaPositionViewModel> GetStoreAreaPositionInfo([FromQuery] string id)
|
||
|
{
|
||
|
var res = _invokeService.GetStoreAreaPositionInfo(id);
|
||
|
return res;
|
||
|
}
|
||
|
/// <summary>
|
||
|
/// 删除
|
||
|
/// </summary>
|
||
|
/// <param name="id"></param>
|
||
|
/// <returns></returns>
|
||
|
[HttpGet]
|
||
|
[Route("DelAreaPosition")]
|
||
|
public DataResult DelStoreAreaPosition([FromQuery] string id)
|
||
|
{
|
||
|
var res = _invokeService.DelStoreAreaPosition(id);
|
||
|
return res;
|
||
|
}
|
||
|
}
|