From 72390e0230b64cd43fedf0ba8e17aba097568a4a Mon Sep 17 00:00:00 2001 From: dengjunjie <dengjunjie@hnkhzn.com> Date: 星期四, 26 六月 2025 16:36:13 +0800 Subject: [PATCH] 1 --- 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Stock/StockViewController.cs | 25 ++++++++++++++++++++----- 1 files changed, 20 insertions(+), 5 deletions(-) diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Stock/StockViewController.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Stock/StockViewController.cs" index a0b5e6e..bbd9d96 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Stock/StockViewController.cs" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Stock/StockViewController.cs" @@ -1,5 +1,8 @@ -锘縰sing Microsoft.AspNetCore.Http; +锘縰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; @@ -8,13 +11,25 @@ namespace WIDESEA_WMSServer.Controllers.Stock { [Route("api/StockView")] - [ApiController] - public class StockViewController : ApiBaseController<IStockViewService, StockViewDTO> + [Authorize, ApiController] + public class StockViewController : Controller { - public StockViewController(IStockViewService service) : base(service) + 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); + } } } -- Gitblit v1.9.3