服务端的TigerApi 框架,基于.NET6 2024 版本
Rodney Chen
2024-12-28 4c8504f8deca450723fcdcf4f772f6cc67049c03
Tiger.Api/Controllers/Test/TestController.R.cs
@@ -368,6 +368,32 @@
            return Ok(result?.ToJson());
        }
        [HttpPost]
        public async Task<IActionResult> InterfaceAsync([FromBody] ApiAction action)
        {
            var data = action.Data;
            var json = new {
                SN = "V025720241120000161",
                ItemCode = "160305330",
                Qty = 1700,
                Unit = "PCS",
                Supplier = "V0381",
                DeliveryDate = DateTime.Now,
                ProdDate = DateTime.Now,
                BatchNo = "20241120",
                ValidityDays = 365,
                SerialNo = 161,
                ItemName = "L-CW1323GA 两个装彩盒 隔板 材质300g单粉裱YF加强过哑膜 105 mm 85 mm 3 mm 南泰 ",
                Warehouse = "W0001",
                ItemModel = "材料 零件 商品",
            };
            var result = action.GetResponse("GetSnInfo success.", json, true);
            return Ok(new { result.Timestamp, result.IsSuccessed, result.Message, result.Data });
        }
        [HttpGet]
        public async Task<IActionResult> RefreashPlugin(string path)
        {