hutongqing
2024-11-27 553dfb0714e78ca05a62fcf352cc1da2c0be5b70
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;
using WIDESEAWCS_Core;
using WIDESEAWCS_Core.BaseController;
using WIDESEAWCS_DTO.Stock;
using WIDESEAWCS_IStockService;
using WIDESEAWCS_Model.Models;
 
namespace WIDESEAWCS_Server.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);
        }
    }
}