qinchulong
2025-05-27 c020f31a67fc5aa5644511bddff075f7ecc85234
代码管理/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Stock/StockViewController.cs
对比新文件
@@ -0,0 +1,35 @@
锘縰sing Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;
using WIDESEA_Core;
using WIDESEA_Core.BaseController;
using WIDESEA_DTO.Stock;
using WIDESEA_IStockService;
using WIDESEA_Model.Models;
namespace WIDESEA_WMSServer.Controllers.Stock
{
    [Route("api/StockView")]
    [Authorize, ApiController]
    public class StockViewController : Controller
    {
        private readonly IStockViewService _stockViewService;
        public StockViewController(IStockViewService stockViewService)
        {
            _stockViewService = stockViewService;
        }
        [HttpPost, Route("GetPageData")]
        public PageGridData<StockViewDTO> GetPageData([FromBody] PageDataOptions options)
        {
            return _stockViewService.GetPageData(options);
        }
        [HttpPost, Route("GetDetailPage")]
        public object GetDetailPage([FromBody] PageDataOptions pageData)
        {
            return _stockViewService.GetDetailPage(pageData);
        }
    }
}