diff --git a/FrontendWebApi/ApiControllers/GraphManage.cs b/FrontendWebApi/ApiControllers/GraphManageController.cs similarity index 98% rename from FrontendWebApi/ApiControllers/GraphManage.cs rename to FrontendWebApi/ApiControllers/GraphManageController.cs index c6a20c0..6ad6d00 100644 --- a/FrontendWebApi/ApiControllers/GraphManage.cs +++ b/FrontendWebApi/ApiControllers/GraphManageController.cs @@ -1,4 +1,5 @@ -using Microsoft.AspNetCore.Http; +using FrontendWebApi.Models; +using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using Repository.BackendRepository.Implement; @@ -6,12 +7,8 @@ using System.Collections.Generic; using System.Threading.Tasks; using System; using System.Linq; -using FrontendWebApi.Models; using Repository.BackendRepository.Interface; using Repository.FrontendRepository.Interface; -using static Repository.Models.GraphManage; -using NPOI.SS.UserModel; -using Microsoft.Extensions.Hosting; using System.IO; namespace FrontendWebApi.ApiControllers @@ -98,7 +95,6 @@ namespace FrontendWebApi.ApiControllers { ApiResult> apiResult = new ApiResult>(); List graManList = new List(); - try { var sqlString = @$"SELECT * @@ -329,4 +325,4 @@ namespace FrontendWebApi.ApiControllers return apiResult; } } -} +} \ No newline at end of file diff --git a/FrontendWebApi/Models/GraphManage.cs b/FrontendWebApi/Models/GraphManage.cs new file mode 100644 index 0000000..9d5ad98 --- /dev/null +++ b/FrontendWebApi/Models/GraphManage.cs @@ -0,0 +1,40 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Http; + +namespace FrontendWebApi.Models +{ + public class GraphList + { + public string code { get; set; } + public int sub_system_id { get; set; } + public string name { get; set; } + public string oriOrgName { get; set; } + public string oriSavName { get; set; } + public string donOrgName { get; set; } + public string donSavName { get; set; } + } + + public class GraphInsInfo + { + public string code { get; set; } + public int sub_system_id { get; set; } + public string name { get; set; } + public string oriOrgName { get; set; } + public string oriSavName { get; set; } + public string donOrgName { get; set; } + public string donSavName { get; set; } + public int priority { get; set; } + public IFormFile oriFile { get; set; } + public IFormFile donFile { get; set; } + } + + public class GraphInfo + { + public string code { get; set; } + public List sub_system_id { get; set; } + public string keyWord { get; set; } + } +} diff --git a/Repository/Models/GraphManage.cs b/Repository/Models/GraphManage.cs deleted file mode 100644 index f86b6e6..0000000 --- a/Repository/Models/GraphManage.cs +++ /dev/null @@ -1,41 +0,0 @@ -using Microsoft.AspNetCore.Http; -using System.Collections.Generic; -using System.Security; - -namespace Repository.Models -{ - public class GraphManage - { - public class GraphList - { - public string code { get; set; } - public int sub_system_id { get; set; } - public string name { get; set; } - public string oriOrgName { get; set; } - public string oriSavName { get; set; } - public string donOrgName { get; set; } - public string donSavName { get; set; } - } - - public class GraphInsInfo - { - public string code { get; set; } - public int sub_system_id { get; set; } - public string name { get; set; } - public string oriOrgName { get; set; } - public string oriSavName { get; set; } - public string donOrgName { get; set; } - public string donSavName { get; set; } - public int priority { get; set; } - public IFormFile oriFile { get; set; } - public IFormFile donFile { get; set; } - } - - public class GraphInfo - { - public string code { get; set; } - public List sub_system_id { get; set; } - public string keyWord { get; set; } - } - } -}