服务端的TigerApi 框架,基于.NET6 2024 版本
Ben Lin
2024-06-12 caff80579a118f9347dd3510fa42ac72125d0b98
Tiger.Api/Controllers/MES/MESController.Route.cs
@@ -1,5 +1,6 @@
using Microsoft.AspNetCore.Mvc;
using Rhea.Common;
using System.Collections.Generic;
using System.Threading.Tasks;
using Tiger.IBusiness;
using Tiger.Model;
@@ -112,5 +113,26 @@
            }
            return Ok(response);
        }
        /// <summary>
        /// 保存节点岗位资源
        /// </summary>
        /// <param name="action"></param>
        /// <returns></returns>
        [HttpPost]
        [Route("api/[controller]/[action]")]
        public async Task<IActionResult> SaveRouteNodePost([FromBody] ApiAction<List<MES_ROUTE_NODE_POST>> action)
        {
            ApiAction response = new();
            try
            {
                response = response.GetResponse(await DI.Resolve<IRoute>().SaveRouteNodePost(action.Data));
            }
            catch (System.Exception ex)
            {
                response = response.GetResponse().CatchExceptionWithLog(ex);
            }
            return Ok(response);
        }
    }
}