服务端的TigerApi 框架,基于.NET6 2024 版本
Ben Lin
2024-07-24 4651b8084dff20870148cc9f9c521d777a78ffb5
Tiger.Api/Controllers/MES/MESController.Route.cs
@@ -139,6 +139,48 @@
        }
        /// <summary>
        /// 删除产品绑定的工艺路线
        /// </summary>
        /// <param name="action"></param>
        /// <returns></returns>
        [HttpPost]
        [Route("api/[controller]/[action]")]
        public async Task<IActionResult> DeleteProdRoute([FromBody] ApiAction<DelProdRotInput> action)
        {
            ApiAction response = new();
            try
            {
                response = response.GetResponse(await DI.Resolve<IRoute>().DeleteProdRoute(action.Data));
            }
            catch (System.Exception ex)
            {
                response = response.GetResponse().CatchExceptionWithLog(ex);
            }
            return Ok(response);
        }
        /// <summary>
        /// 删除工单绑定的工艺路线
        /// </summary>
        /// <param name="action"></param>
        /// <returns></returns>
        [HttpPost]
        [Route("api/[controller]/[action]")]
        public async Task<IActionResult> DeleteWoRoute([FromBody] ApiAction<DelWoRotInput> action)
        {
            ApiAction response = new();
            try
            {
                response = response.GetResponse(await DI.Resolve<IRoute>().DeleteWoRoute(action.Data));
            }
            catch (System.Exception ex)
            {
                response = response.GetResponse().CatchExceptionWithLog(ex);
            }
            return Ok(response);
        }
        /// <summary>
        /// 获取工艺路线树形结构
        /// </summary>
        /// <param name="prodCode"></param>