Files
wcs/WCS.WebApi/Controllers/MatDetailCurrenInfoController.cs
hehaibing-1996 a4c02a9173 1.PDA绑定相关接口
2.货架存量 后端接口
2025-01-13 20:08:03 +08:00

51 lines
1.8 KiB
C#

using Microsoft.AspNetCore.Mvc;
using WCS.BLL.Services.IService;
using WCS.BLL.Services.Service;
using WCS.Model.ApiModel.MatInventoryDetail;
using WCS.Model;
using WCS.Model.ApiModel.StoreInfo;
using WCS.BLL.DbModels;
using WCS.Model.ApiModel.MatBaseInfo;
using WCS.DAL.DbModels;
using WCS.DAL.Db;
using WCS.Model.ApiModel.Home;
using WCS.Model.ApiModel.LocationInfo;
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("updateLocationInfo")]
public async Task<ResponseCommon<object>> updateLocationInfo(AddLocaionInfoRequest<MatDetailCurrentInfo> request)
{
return await _matDetailCurrentInfoService.updateMatDetailCurrentInfo(request);
}
[HttpPost("deleteLocationInfo")]
public async Task<ResponseCommon<object>> deleteLocationInfo(DeleteInfosRequest request)
{
return await _matDetailCurrentInfoService.deleteMatDetailCurrentInfo(request);
}
#endregion
}
}