47 lines
1.7 KiB
C#
47 lines
1.7 KiB
C#
using Microsoft.AspNetCore.Mvc;
|
|
using WCS.BLL.Services.IService;
|
|
using WCS.BLL.Services.Service;
|
|
using WCS.Model;
|
|
using WCS.Model.ApiModel.StoreInfo;
|
|
using WCS.BLL.DbModels;
|
|
using WCS.Model.ApiModel.MatBaseInfo;
|
|
using WCS.Model.ApiModel.MatDetailCurrentInfo;
|
|
|
|
namespace WCS.WebApi.Controllers
|
|
{
|
|
/// <summary>
|
|
/// 货架管理、模组管理、库位管理的接口
|
|
/// </summary>
|
|
[ApiController]
|
|
[Route("[controller]")]
|
|
public class MatDetailCurrenInfoController : ControllerBase
|
|
{
|
|
public IMatDetailCurrentInfoService _matDetailCurrentInfoService { get; set; }
|
|
public MatDetailCurrenInfoController(IMatDetailCurrentInfoService matDetailCurrentInfoService)
|
|
{
|
|
_matDetailCurrentInfoService = matDetailCurrentInfoService;
|
|
}
|
|
|
|
#region 位置管理
|
|
[Route("getMatDetailCurrentInfos")]
|
|
[HttpPost(Name = "getMatDetailCurrentInfos")]
|
|
public async Task<ResponseBase> GetMatDetailCurrentInfos(GetMatDetailCurrentInfosRequest request)
|
|
{
|
|
return await _matDetailCurrentInfoService.GetMatDetailCurrentInfos(request);
|
|
}
|
|
|
|
[HttpPost("updateMatDetailCurrentInfo")]
|
|
public async Task<ResponseCommon<object>> updateMatDetailCurrentInfo(AddLocaionInfoRequest<MatDetailCurrentInfo> request)
|
|
{
|
|
return await _matDetailCurrentInfoService.updateMatDetailCurrentInfo(request);
|
|
}
|
|
|
|
[HttpPost("deleteMatDetailCurrentInfo")]
|
|
public async Task<ResponseCommon<object>> deleteMatDetailCurrentInfo(DeleteInfosRequest request)
|
|
{
|
|
return await _matDetailCurrentInfoService.deleteMatDetailCurrentInfo(request);
|
|
}
|
|
#endregion
|
|
}
|
|
}
|