!提交代码
This commit is contained in:
39
WCS.WebApi/Controllers/StoreInfoController.cs
Normal file
39
WCS.WebApi/Controllers/StoreInfoController.cs
Normal file
@ -0,0 +1,39 @@
|
||||
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;
|
||||
|
||||
namespace WCS.WebApi.Controllers
|
||||
{
|
||||
/// <summary>
|
||||
/// 货架\、库位管理的页面
|
||||
/// </summary>
|
||||
[ApiController]
|
||||
[Route("[controller]")]
|
||||
public class StoreInfoController : ControllerBase
|
||||
{
|
||||
public IStoreInfoService _storeInfoService { get; set; }
|
||||
public StoreInfoController(IStoreInfoService storeInfoService)
|
||||
{
|
||||
_storeInfoService = storeInfoService;
|
||||
}
|
||||
|
||||
[Route("getShelves")]
|
||||
[HttpPost(Name = "getShelves")]
|
||||
public async Task<ResponseBase> getShelves(GetShelvesRequest request)
|
||||
{
|
||||
return await _storeInfoService.GetShelves(request);
|
||||
}
|
||||
|
||||
[HttpPost("addOrUpdateShelfInfo")]
|
||||
public async Task<ResponseCommon<object>> addOrUpdateShelfInfo(AddShelfInfoRequest<ShelfInfo> request)
|
||||
{
|
||||
return await _storeInfoService.addOrUpdateShelfInfo(request);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user