| | |
| | | 锘縰sing Microsoft.AspNetCore.Http; |
| | | 锘縰sing Microsoft.AspNetCore.Authorization; |
| | | using Microsoft.AspNetCore.Http; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using OfficeOpenXml.FormulaParsing.Excel.Functions.Text; |
| | | using WIDESEA_Core; |
| | | using WIDESEA_Core.BaseController; |
| | | using WIDESEA_IWMsInfoServices; |
| | |
| | | public InventoryInfoController(IInventoryInfoService service) : base(service) |
| | | { |
| | | } |
| | | /// <summary> |
| | | /// 鏁板瓧瀛敓鑾峰彇搴撳瓨淇℃伅 |
| | | /// </summary> |
| | | /// <param name="keys"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, HttpGet, Route("GetInventory"), AllowAnonymous] |
| | | public object GetInventory() |
| | | { |
| | | WebResponseContent content = Service.GetInventory(); |
| | | if (!content.Status) |
| | | { |
| | | return new |
| | | { |
| | | code = "404", |
| | | note = content.Message |
| | | }; |
| | | } |
| | | else |
| | | { |
| | | return new |
| | | { |
| | | code = "000", |
| | | note = "鎴愬姛", |
| | | date = content.Data |
| | | }; |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | } |