[FrontedWebApi][圖資管理] API 調整

This commit is contained in:
dev01 2022-11-09 15:16:43 +08:00
parent aabccca4b4
commit cad0b36cc7
2 changed files with 5 additions and 4 deletions

View File

@ -134,7 +134,7 @@ namespace FrontendWebApi.ApiControllers
}
[HttpPost]
public async Task<ApiResult<string>> DelOneGraMan(GraphInfo gi)
public async Task<ApiResult<string>> DelOneGraMan([FromBody] GraphInfo gi)
{
ApiResult<string> apiResult = new ApiResult<string>();
@ -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);

View File

@ -37,7 +37,7 @@ namespace FrontendWebApi.Models
{
public string code { get; set; }
public string main_system_tag { get; set; }
public List<int> sub_system_tag { get; set; } = new List<int>{ };
public List<int> sub_system_tag { get; set; }
public string keyWord { get; set; }
}
}