From cad0b36cc7ed92bf2245f2b3d2ed4cf0d6ed000f Mon Sep 17 00:00:00 2001 From: dev01 Date: Wed, 9 Nov 2022 15:16:43 +0800 Subject: [PATCH] =?UTF-8?q?[FrontedWebApi][=E5=9C=96=E8=B3=87=E7=AE=A1?= =?UTF-8?q?=E7=90=86]=20API=20=E8=AA=BF=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FrontendWebApi/ApiControllers/GraphManageController.cs | 7 ++++--- FrontendWebApi/Models/GraphManage.cs | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/FrontendWebApi/ApiControllers/GraphManageController.cs b/FrontendWebApi/ApiControllers/GraphManageController.cs index 74005d7..e22bb18 100644 --- a/FrontendWebApi/ApiControllers/GraphManageController.cs +++ b/FrontendWebApi/ApiControllers/GraphManageController.cs @@ -134,7 +134,7 @@ namespace FrontendWebApi.ApiControllers } [HttpPost] - public async Task> DelOneGraMan(GraphInfo gi) + public async Task> DelOneGraMan([FromBody] GraphInfo gi) { ApiResult apiResult = new ApiResult(); @@ -304,12 +304,13 @@ namespace FrontendWebApi.ApiControllers gii.donFile.CopyTo(stream); } - graph_manage.Add("@oriOrgName", gii.donOrgName); - graph_manage.Add("@oriSavName", fileName); + graph_manage.Add("@donOrgName", gii.donOrgName); + graph_manage.Add("@donSavName", fileName); } } var newPriority = await backendRepository.GetCurrentPriority("graph_manage"); + graph_manage.Add("@code", gii.code); graph_manage.Add("@main_system_tag", gii.main_system_tag); graph_manage.Add("@sub_system_tag", gii.sub_system_tag); graph_manage.Add("@name", gii.name); diff --git a/FrontendWebApi/Models/GraphManage.cs b/FrontendWebApi/Models/GraphManage.cs index 8656f6c..2a39fd5 100644 --- a/FrontendWebApi/Models/GraphManage.cs +++ b/FrontendWebApi/Models/GraphManage.cs @@ -37,7 +37,7 @@ namespace FrontendWebApi.Models { public string code { get; set; } public string main_system_tag { get; set; } - public List sub_system_tag { get; set; } = new List{ }; + public List sub_system_tag { get; set; } public string keyWord { get; set; } } }