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<^uKrz+p8ppA|q>`UXjlA$UHQnanb)+3_smgCPmy91~`I% Cz|zwWZaw zF*ZngI4GSNNj#VlMAC~J6$PcBHkE2xq12|9FC Suc7V9K>|B? z<>N ii>F^USh 6VqteM-_ Uu)Z$J0*?BNPiNtn8AG_0RGvKeGcTBX zx4vvInmELS{n16ZhL;;kz3eRdvgi;VM4^JEDz=PNnOw4EB!{LkY71LN(w7>IMHj1f yX3I!)8TK1oMq>8=m38k}D24z-fFZyTU dxC@c#f(iurf| From 684eda31e6a2c5cf2984e1da9115739711b395b1 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Thu, 23 Jun 2022 17:44:55 +0800 Subject: [PATCH 020/108] - --- SoEasyPlatform/Properties/PublishProfiles/FolderProfile.pubxml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SoEasyPlatform/Properties/PublishProfiles/FolderProfile.pubxml b/SoEasyPlatform/Properties/PublishProfiles/FolderProfile.pubxml index ad9dc463..6f310d2b 100644 --- a/SoEasyPlatform/Properties/PublishProfiles/FolderProfile.pubxml +++ b/SoEasyPlatform/Properties/PublishProfiles/FolderProfile.pubxml @@ -13,7 +13,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121. bin\Release\netcoreapp3.1\publish\ FileSystem - net6.0 +netcoreapp3.1 win-x86 true d4e4101e-81b5-40f8-903d-d6e069250841 From 650f0e624cf550e7bfd16102af113b2569d42521 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Thu, 23 Jun 2022 17:49:20 +0800 Subject: [PATCH 021/108] - --- SoEasyPlatform/Startup.cs | 2 +- SoEasyPlatform/wwwroot/views/system/template.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/SoEasyPlatform/Startup.cs b/SoEasyPlatform/Startup.cs index 0e0469c8..afbbd1ee 100644 --- a/SoEasyPlatform/Startup.cs +++ b/SoEasyPlatform/Startup.cs @@ -24,7 +24,7 @@ public class Startup ////// 汾 /// - public static string Version = "1.41"; + public static string Version = "1.42"; ////// ӿĿ¼ /// diff --git a/SoEasyPlatform/wwwroot/views/system/template.js b/SoEasyPlatform/wwwroot/views/system/template.js index 6dda463e..a50bd300 100644 --- a/SoEasyPlatform/wwwroot/views/system/template.js +++ b/SoEasyPlatform/wwwroot/views/system/template.js @@ -54,6 +54,7 @@ btnAdd.$Open("#divOpen", { return true; }, yes: function () { + $("#saveContent").val(editorContainer.contentWindow.getValue()); frmSave.$Form({ url: configs.url.SaveSystem, callback: function (msg) { From 2c9d786aa6a891444514eae12fcbda78887a5266 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Thu, 23 Jun 2022 22:31:41 +0800 Subject: [PATCH 022/108] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E6=96=B9=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SoEasyPlatform/InitProjects.cs | 158 ------------------ SoEasyPlatform/InitProjects/1_Main.cs | 37 ++++ SoEasyPlatform/InitProjects/2_SlnManager.cs | 55 ++++++ .../InitProjects/3_ProjectManager.cs | 80 +++++++++ .../InitProjects/4_TemplateManager.cs | 57 +++++++ SoEasyPlatform/InitProjects/Helper.cs | 46 +++++ SoEasyPlatform/InitProjects/Model.cs | 4 + 7 files changed, 279 insertions(+), 158 deletions(-) delete mode 100644 SoEasyPlatform/InitProjects.cs create mode 100644 SoEasyPlatform/InitProjects/1_Main.cs create mode 100644 SoEasyPlatform/InitProjects/2_SlnManager.cs create mode 100644 SoEasyPlatform/InitProjects/3_ProjectManager.cs create mode 100644 SoEasyPlatform/InitProjects/4_TemplateManager.cs create mode 100644 SoEasyPlatform/InitProjects/Helper.cs create mode 100644 SoEasyPlatform/InitProjects/Model.cs diff --git a/SoEasyPlatform/InitProjects.cs b/SoEasyPlatform/InitProjects.cs deleted file mode 100644 index 2d10bd7a..00000000 --- a/SoEasyPlatform/InitProjects.cs +++ /dev/null @@ -1,158 +0,0 @@ -using Newtonsoft.Json.Linq; -using SqlSugar; -using System; -using System.Collections.Generic; -using System.IO; -using System.Xml.Linq; - -namespace SoEasyPlatform -{ - ///- /// 用来初始化整个项目 /wwwroot/template/Projects - /// - public partial class InitTable - { - private void InitProjects(SqlSugarClient db) - { - //var directory = FileSugar.MergeUrl(Directory.GetCurrentDirectory(), "wwwroot", "template", "Projects"); - //var slnListPathList = Directory.GetDirectories(directory); - //try - //{ - // db.BeginTran(); - // foreach (var sln in slnListPathList) - // { - // ProjectGroup projectGroup = new ProjectGroup(); - // AddProjects(db, sln); - // } - // db.CommitTran(); - //} - //catch (System.Exception ex) - //{ - // db.RollbackTran(); - // throw new System.Exception(ex.Message); - //} - } - - private ListAddProjects(SqlSugarClient db, string sln) - { - List result = new List (); - var slnName = System.IO.Path.GetFileName(sln); - var configUrl = FileSugar.MergeUrl(sln, "Config.json"); - CheckProjectConfig(configUrl); - var json = FileSugar.FileToString(configUrl); - var projects = JArray.Parse(json); - foreach (var item in projects) - { - CheckConfigItemChilds(configUrl, item); - var 模版 = item["模版"].ToString(); - var 文件夹 = item["文件夹"].ToString(); - var 子目录 = item["子目录"].ToString(); - var 文件后缀 = item["文件后缀"].ToString(); - var 描述 = item["描述"].ToString(); - var tempUrl = FileSugar.MergeUrl(sln, 模版); - CheckProjectConfig(tempUrl); - var tempId = AddTemplate(db, configUrl, 文件夹, 描述, tempUrl, slnName); - var projectPath = FileSugar.MergeUrl(sln, 文件夹); - var id= AddProject(db, tempId, 文件夹, sln, projectPath); - result.Add(id); - } - return result; - } - - private int AddProject(SqlSugarClient db, int tempId, string apiName, string rootPath, string projectPath) - { - var files = Directory.GetFiles(projectPath); - - foreach (var filePath in files) - { - - var path = filePath.Replace(projectPath, "").TrimStart('\\').TrimStart('/'); - FileInfo file = new FileInfo() - { - ChangeTime = DateTime.Now, - Content = FileSugar.FileToString(filePath), - IsDeleted = false, - IsInit = true, - Name = "", - Json = "{\"name\":\"" + System.IO.Path.GetFileName(filePath) + "\"}", - Suffix = "{\"name\":\"" + System.IO.Path.GetExtension(filePath) + "\"}", - SolutionId = "", - Sort = 999 - }; - } - //throw new NotImplementedException(); - return 1; - } - - private int AddTemplate(SqlSugarClient db, string configUrl, string 文件夹, string 描述, string tempUrl,string slnName ) - { - var name = slnName+"_" +文件夹 + 描述 ; - var dbtemp = db.Queryable().First(it => it.Title == name); - if (dbtemp != null && !string.IsNullOrEmpty(dbtemp.Content)) - { - return dbtemp.Id; - } - else if (dbtemp != null) - { - db.Deleteable().In(dbtemp.Id).ExecuteCommand(); - } - var temp = new Template() - { - Content = FileSugar.FileToString(tempUrl), - ChangeTime = DateTime.Now, - IsDeleted = false, - Sort = 999, - TemplateTypeName = 描述, - Title = name, - IsInit = true, - TemplateTypeId = Convert.ToInt32(GetTempTypeId(描述, configUrl)) - }; - var tempId = db.Insertable(temp).ExecuteReturnIdentity(); - return tempId; - } - - private string GetTempTypeId(string 描述, string url) - { - if (描述 == "实体") - return "1"; - else if (描述 == "业务") - return "2"; - else if (描述.ToLower() == "web") - return "3"; - else - { - throw new Exception("描述内容错误: 只能是 实体、业务或者Web。 " + url); - } - } - - private void CheckConfigItemChilds(string configUrl, JToken item) - { - CheckJsonItem(item["模版"], "模版", item, configUrl); - CheckJsonItem(item["文件夹"], "文件夹", item, configUrl); - CheckJsonItem(item["子目录"], "子目录", item, configUrl); - CheckJsonItem(item["文件后缀"], "文件后缀", item, configUrl); - CheckJsonItem(item["描述"], "描述", item, configUrl); - } - - private void CheckJsonItem(JToken jToken, string keyName, JToken item, string url) - { - if (jToken == null) - { - throw new System.Exception(url + "配置错误 ,缺少: " + keyName + "节点 。" + item.ToString()); - } - } - - /// - /// 验证是否存在项目配置 - /// - /// - ///- private static void CheckProjectConfig(string configUrl) - { - if (FileSugar.IsExistFile(configUrl) == false) - { - throw new System.Exception("没有找到文件" + configUrl); - } - } - } -} diff --git a/SoEasyPlatform/InitProjects/1_Main.cs b/SoEasyPlatform/InitProjects/1_Main.cs new file mode 100644 index 00000000..627e2286 --- /dev/null +++ b/SoEasyPlatform/InitProjects/1_Main.cs @@ -0,0 +1,37 @@ +using Newtonsoft.Json.Linq; +using SqlSugar; +using System; +using System.Collections.Generic; +using System.IO; +using System.Xml.Linq; + +namespace SoEasyPlatform +{ + /// + /// 用来初始化整个项目主入口 + /// + public partial class InitTable + { + SqlSugarClient db; + private void InitProjects(SqlSugarClient db) + { + this.db = db; + var directory = FileSugar.MergeUrl(Directory.GetCurrentDirectory(), "wwwroot", "template", "Projects"); + var slnListPathList = Directory.GetDirectories(directory); + try + { + db.BeginTran(); + foreach (var sln in slnListPathList) + { + AddSln(sln); + } + db.CommitTran(); + } + catch (System.Exception ex) + { + db.RollbackTran(); + throw new System.Exception(ex.Message); + } + } + } +} diff --git a/SoEasyPlatform/InitProjects/2_SlnManager.cs b/SoEasyPlatform/InitProjects/2_SlnManager.cs new file mode 100644 index 00000000..52c8777f --- /dev/null +++ b/SoEasyPlatform/InitProjects/2_SlnManager.cs @@ -0,0 +1,55 @@ +using SqlSugar; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Xml.Linq; + +namespace SoEasyPlatform +{ + ///+ ///项目解决方案管理 + /// + public partial class InitTable + { + int groupId = 0; + private void AddSln(string sln) + { + var slnName = System.IO.Path.GetFileName(sln); + string projectNames = ""; + var groupdata = db.Queryable().First(it => it.Name == slnName); + if (groupdata != null) + { + ClearGroup(groupdata); + } + ProjectGroup projectGroup = new ProjectGroup() + { + ProjectIds = new int[] { }, + Name = "", + ProjectNames = "", + SolutionPath = "", + Sort = 100 + }; + groupId = db.Insertable(projectGroup).ExecuteReturnIdentity(); + var ids = AddProjects(sln, slnName); + projectGroup = new ProjectGroup() + { + ProjectIds = ids.ToArray(), + Name = slnName, + ProjectNames = projectNames, + SolutionPath = "c:\\Projects\\" + slnName, + Sort = 100, + Id = groupId + }; + db.Updateable(projectGroup).ExecuteCommand(); + } + + private void ClearGroup(ProjectGroup groupdata) + { + db.Deleteable (groupdata).ExecuteCommand(); + db.Deleteable ().Where(it => it.SolutionId.Equals(groupdata.Id)).ExecuteCommand(); + db.Deleteable From 5bd00d3c3db7797812c1aec4f41ca0e7b0ea7de6 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Fri, 24 Jun 2022 06:28:22 +0800 Subject: [PATCH 064/108] - --- .../FurionMvc.Web.Entry/Views/Shared/_Layout.cshtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Views/Shared/_Layout.cshtml b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Views/Shared/_Layout.cshtml index f5f94a03..1852b9d7 100644 --- a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Views/Shared/_Layout.cshtml +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Views/Shared/_Layout.cshtml @@ -3,9 +3,9 @@ -().Where(it => it.SolutionId.Equals(groupdata.Id)).ExecuteCommand(); + } + + } +} diff --git a/SoEasyPlatform/InitProjects/3_ProjectManager.cs b/SoEasyPlatform/InitProjects/3_ProjectManager.cs new file mode 100644 index 00000000..f8669b58 --- /dev/null +++ b/SoEasyPlatform/InitProjects/3_ProjectManager.cs @@ -0,0 +1,80 @@ +using Newtonsoft.Json.Linq; +using SqlSugar; +using System; +using System.Collections.Generic; +using System.IO; +using System.Xml.Linq; + +namespace SoEasyPlatform +{ + /// + /// 方案管理 + /// + public partial class InitTable + { + private string projectNames; + private ListAddProjects(string sln, string slnName) + { + List result = new List (); + var configUrl = FileSugar.MergeUrl(sln, "Config.json"); + CheckProjectConfig(configUrl); + var json = FileSugar.FileToString(configUrl); + var projects = JArray.Parse(json); + projectNames = ""; + foreach (var item in projects) + { + CheckConfigItemChilds(configUrl, item); + var 模版 = item["模版"].ToString(); + var 文件夹 = item["文件夹"].ToString(); + var 子目录 = item["子目录"].ToString(); + var 文件后缀 = item["文件后缀"].ToString(); + var 描述 = item["描述"].ToString(); + var tempUrl = FileSugar.MergeUrl(sln, 模版); + CheckProjectConfig(tempUrl); + var tempId = AddTemplate(configUrl, 文件夹, 描述, tempUrl, slnName); + var projectPath = FileSugar.MergeUrl(sln, 文件夹); + var id = AddProject(tempId, slnName + "_" + 文件夹, sln, projectPath, 文件后缀); + result.Add(id); + } + return result; + } + + private int AddProject(int tempId, string apiName, string rootPath, string projectPath, string suff) + { + var files = Directory.GetFiles(projectPath); + Project project = new Project(); + List fieldIds = new List (); + foreach (var filePath in files) + { + + var path = filePath.Replace(projectPath, "").TrimStart('\\').TrimStart('/'); + FileInfo file = new FileInfo() + { + ChangeTime = DateTime.Now, + Content = FileSugar.FileToString(filePath), + IsDeleted = false, + IsInit = true, + Name = "", + Json = "{\"name\":\"" + System.IO.Path.GetFileName(filePath) + "\"}", + Suffix = "{\"name\":\"" + System.IO.Path.GetExtension(filePath) + "\"}", + SolutionId = groupId + "", + Sort = 999, + + }; + var fieldId = db.Insertable(file).ExecuteReturnIdentity(); + fieldIds.Add(fieldId); + } + project.ProjentName = apiName; + projectNames += apiName = ","; + project.Path = projectPath; + project.SolutionId = "0"; + project.TemplateId1 = tempId + ""; + project.FileInfo = String.Join(",", fieldIds); + project.FileSuffix = suff; + project.SolutionId = groupId + ""; + project.TemplateId1 = tempTypeId + ""; + var pid = db.Insertable(project).ExecuteReturnIdentity(); + return pid; + } + } +} diff --git a/SoEasyPlatform/InitProjects/4_TemplateManager.cs b/SoEasyPlatform/InitProjects/4_TemplateManager.cs new file mode 100644 index 00000000..3cfcf6a0 --- /dev/null +++ b/SoEasyPlatform/InitProjects/4_TemplateManager.cs @@ -0,0 +1,57 @@ +using SqlSugar; +using System; +using System.Collections.Generic; +using System.IO; +using System.Xml.Linq; + +namespace SoEasyPlatform +{ + /// + ///模版管理 + /// + public partial class InitTable + { + int tempTypeId = 0; + private int AddTemplate(string configUrl, string 文件夹, string 描述, string tempUrl, string slnName) + { + var name = slnName + "_" + 文件夹 + 描述; + var dbtemp = db.Queryable().First(it => it.Title == name); + if (dbtemp != null && !string.IsNullOrEmpty(dbtemp.Content)) + { + return dbtemp.Id; + } + else if (dbtemp != null) + { + db.Deleteable().In(dbtemp.Id).ExecuteCommand(); + } + var temp = new Template() + { + Content = FileSugar.FileToString(tempUrl), + ChangeTime = DateTime.Now, + IsDeleted = false, + Sort = 999, + TemplateTypeName = 描述, + Title = name, + IsInit = true, + TemplateTypeId = Convert.ToInt32(GetTempTypeId(描述, configUrl)) + }; + var tempId = db.Insertable(temp).ExecuteReturnIdentity(); + tempTypeId = temp.TemplateTypeId; + return tempId; + } + + private string GetTempTypeId(string 描述, string url) + { + if (描述 == "实体") + return "1"; + else if (描述 == "业务") + return "2"; + else if (描述.ToLower() == "web") + return "3"; + else + { + throw new Exception("描述内容错误: 只能是 实体、业务或者Web。 " + url); + } + } + } +} diff --git a/SoEasyPlatform/InitProjects/Helper.cs b/SoEasyPlatform/InitProjects/Helper.cs new file mode 100644 index 00000000..4bfc126c --- /dev/null +++ b/SoEasyPlatform/InitProjects/Helper.cs @@ -0,0 +1,46 @@ +using Newtonsoft.Json.Linq; +using SqlSugar; +using System; +using System.Collections.Generic; +using System.IO; +using System.Xml.Linq; + +namespace SoEasyPlatform +{ + ///+ ///辅助方法 + /// + public partial class InitTable + { + + private void CheckConfigItemChilds(string configUrl, JToken item) + { + CheckJsonItem(item["模版"], "模版", item, configUrl); + CheckJsonItem(item["文件夹"], "文件夹", item, configUrl); + CheckJsonItem(item["子目录"], "子目录", item, configUrl); + CheckJsonItem(item["文件后缀"], "文件后缀", item, configUrl); + CheckJsonItem(item["描述"], "描述", item, configUrl); + } + + private void CheckJsonItem(JToken jToken, string keyName, JToken item, string url) + { + if (jToken == null) + { + throw new System.Exception(url + "配置错误 ,缺少: " + keyName + "节点 。" + item.ToString()); + } + } + + ///+ /// 验证是否存在项目配置 + /// + /// + ///+ private static void CheckProjectConfig(string configUrl) + { + if (FileSugar.IsExistFile(configUrl) == false) + { + throw new System.Exception("没有找到文件" + configUrl); + } + } + } +} diff --git a/SoEasyPlatform/InitProjects/Model.cs b/SoEasyPlatform/InitProjects/Model.cs new file mode 100644 index 00000000..e30a0c01 --- /dev/null +++ b/SoEasyPlatform/InitProjects/Model.cs @@ -0,0 +1,4 @@ +namespace SoEasyPlatform.InitProjects +{ + +} From 0c04ef87d3ae3425d2b37eb6eb45ecd11cd5be52 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Thu, 23 Jun 2022 22:47:00 +0800 Subject: [PATCH 023/108] - --- SoEasyPlatform/InitProjects/2_SlnManager.cs | 4 ++-- SoEasyPlatform/InitProjects/3_ProjectManager.cs | 9 ++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/SoEasyPlatform/InitProjects/2_SlnManager.cs b/SoEasyPlatform/InitProjects/2_SlnManager.cs index 52c8777f..59565d1c 100644 --- a/SoEasyPlatform/InitProjects/2_SlnManager.cs +++ b/SoEasyPlatform/InitProjects/2_SlnManager.cs @@ -15,8 +15,8 @@ public partial class InitTable int groupId = 0; private void AddSln(string sln) { + projectNames = ""; var slnName = System.IO.Path.GetFileName(sln); - string projectNames = ""; var groupdata = db.Queryable ().First(it => it.Name == slnName); if (groupdata != null) { @@ -36,7 +36,7 @@ private void AddSln(string sln) { ProjectIds = ids.ToArray(), Name = slnName, - ProjectNames = projectNames, + ProjectNames = projectNames.TrimEnd(','), SolutionPath = "c:\\Projects\\" + slnName, Sort = 100, Id = groupId diff --git a/SoEasyPlatform/InitProjects/3_ProjectManager.cs b/SoEasyPlatform/InitProjects/3_ProjectManager.cs index f8669b58..57d54cbd 100644 --- a/SoEasyPlatform/InitProjects/3_ProjectManager.cs +++ b/SoEasyPlatform/InitProjects/3_ProjectManager.cs @@ -20,7 +20,6 @@ private List AddProjects(string sln, string slnName) CheckProjectConfig(configUrl); var json = FileSugar.FileToString(configUrl); var projects = JArray.Parse(json); - projectNames = ""; foreach (var item in projects) { CheckConfigItemChilds(configUrl, item); @@ -33,13 +32,13 @@ private List AddProjects(string sln, string slnName) CheckProjectConfig(tempUrl); var tempId = AddTemplate(configUrl, 文件夹, 描述, tempUrl, slnName); var projectPath = FileSugar.MergeUrl(sln, 文件夹); - var id = AddProject(tempId, slnName + "_" + 文件夹, sln, projectPath, 文件后缀); + var id = AddProject(tempId, slnName, 文件夹, sln, projectPath, 文件后缀); result.Add(id); } return result; } - private int AddProject(int tempId, string apiName, string rootPath, string projectPath, string suff) + private int AddProject(int tempId,string slnName, string apiName, string rootPath, string projectPath, string suff) { var files = Directory.GetFiles(projectPath); Project project = new Project(); @@ -64,8 +63,8 @@ private int AddProject(int tempId, string apiName, string rootPath, string proje var fieldId = db.Insertable(file).ExecuteReturnIdentity(); fieldIds.Add(fieldId); } - project.ProjentName = apiName; - projectNames += apiName = ","; + project.ProjentName = slnName+"_"+apiName; + projectNames += (apiName + ","); project.Path = projectPath; project.SolutionId = "0"; project.TemplateId1 = tempId + ""; From 60513d61dbf009d1a757a5390cd0d21dd81509f9 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Thu, 23 Jun 2022 22:50:06 +0800 Subject: [PATCH 024/108] - --- SoEasyPlatform/InitProjects/3_ProjectManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SoEasyPlatform/InitProjects/3_ProjectManager.cs b/SoEasyPlatform/InitProjects/3_ProjectManager.cs index 57d54cbd..f697eca6 100644 --- a/SoEasyPlatform/InitProjects/3_ProjectManager.cs +++ b/SoEasyPlatform/InitProjects/3_ProjectManager.cs @@ -71,7 +71,7 @@ private int AddProject(int tempId,string slnName, string apiName, string rootPat project.FileInfo = String.Join(",", fieldIds); project.FileSuffix = suff; project.SolutionId = groupId + ""; - project.TemplateId1 = tempTypeId + ""; + //project.ty = tempTypeId + ""; var pid = db.Insertable(project).ExecuteReturnIdentity(); return pid; } From 83eb4af11598a59f449318dcb80e68f87e7f6f99 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Thu, 23 Jun 2022 22:57:42 +0800 Subject: [PATCH 025/108] - --- SoEasyPlatform/InitProjects/2_SlnManager.cs | 44 +++++++++++++-------- 1 file changed, 28 insertions(+), 16 deletions(-) diff --git a/SoEasyPlatform/InitProjects/2_SlnManager.cs b/SoEasyPlatform/InitProjects/2_SlnManager.cs index 59565d1c..ed9203eb 100644 --- a/SoEasyPlatform/InitProjects/2_SlnManager.cs +++ b/SoEasyPlatform/InitProjects/2_SlnManager.cs @@ -18,21 +18,16 @@ private void AddSln(string sln) projectNames = ""; var slnName = System.IO.Path.GetFileName(sln); var groupdata = db.Queryable ().First(it => it.Name == slnName); - if (groupdata != null) - { - ClearGroup(groupdata); - } - ProjectGroup projectGroup = new ProjectGroup() - { - ProjectIds = new int[] { }, - Name = "", - ProjectNames = "", - SolutionPath = "", - Sort = 100 - }; + ClearGroup(groupdata); + ProjectGroup projectGroup = CreateEmptyProject(); groupId = db.Insertable(projectGroup).ExecuteReturnIdentity(); var ids = AddProjects(sln, slnName); - projectGroup = new ProjectGroup() + projectGroup = UpdateProject(slnName, ids); + } + + private ProjectGroup UpdateProject(string slnName, List ids) + { + ProjectGroup projectGroup = new ProjectGroup() { ProjectIds = ids.ToArray(), Name = slnName, @@ -42,13 +37,30 @@ private void AddSln(string sln) Id = groupId }; db.Updateable(projectGroup).ExecuteCommand(); + return projectGroup; + } + + private static ProjectGroup CreateEmptyProject() + { + return new ProjectGroup() + { + ProjectIds = new int[] { }, + Name = "", + ProjectNames = "", + SolutionPath = "", + Sort = 100 + }; } private void ClearGroup(ProjectGroup groupdata) { - db.Deleteable (groupdata).ExecuteCommand(); - db.Deleteable ().Where(it => it.SolutionId.Equals(groupdata.Id)).ExecuteCommand(); - db.Deleteable From 5096e487fc104e805db64727d878c2c40ccc5c74 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Fri, 24 Jun 2022 06:18:37 +0800 Subject: [PATCH 063/108] - --- SoEasyPlatform/SoEasyPlatform.csproj | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SoEasyPlatform/SoEasyPlatform.csproj b/SoEasyPlatform/SoEasyPlatform.csproj index 5723ea5e..e4f324f5 100644 --- a/SoEasyPlatform/SoEasyPlatform.csproj +++ b/SoEasyPlatform/SoEasyPlatform.csproj @@ -43,7 +43,6 @@().Where(it => it.SolutionId.Equals(groupdata.Id)).ExecuteCommand(); + if (groupdata != null) + { + + db.Deleteable (groupdata).ExecuteCommand(); + db.Deleteable ().Where(it => it.SolutionId.Equals(groupdata.Id)).ExecuteCommand(); + db.Deleteable From a41b5382b693e4abb23a06ca817443a1e28d70af Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Fri, 24 Jun 2022 06:18:05 +0800 Subject: [PATCH 061/108] - --- .../wwwroot/template/Projects/FurionSqlSugarMvc/Razor.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/Razor.txt b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/Razor.txt index 5f282702..47ee3c65 100644 --- a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/Razor.txt +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/Razor.txt @@ -1 +1 @@ - \ No newline at end of file +// \ No newline at end of file From 5c2613191886c0bc3c310785123a76ee4d604295 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Fri, 24 Jun 2022 06:18:26 +0800 Subject: [PATCH 062/108] - --- SoEasyPlatform/SoEasyPlatform.csproj | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/SoEasyPlatform/SoEasyPlatform.csproj b/SoEasyPlatform/SoEasyPlatform.csproj index e4f324f5..5723ea5e 100644 --- a/SoEasyPlatform/SoEasyPlatform.csproj +++ b/SoEasyPlatform/SoEasyPlatform.csproj @@ -43,6 +43,7 @@().Where(it => it.SolutionId.Equals(groupdata.Id)).ExecuteCommand(); + } } } From acec94ed1d6baa715602cdb537eb6ad3ac3de1d6 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Thu, 23 Jun 2022 22:57:56 +0800 Subject: [PATCH 026/108] - --- SoEasyPlatform/InitProjects/2_SlnManager.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/SoEasyPlatform/InitProjects/2_SlnManager.cs b/SoEasyPlatform/InitProjects/2_SlnManager.cs index ed9203eb..a16bd463 100644 --- a/SoEasyPlatform/InitProjects/2_SlnManager.cs +++ b/SoEasyPlatform/InitProjects/2_SlnManager.cs @@ -62,6 +62,5 @@ private void ClearGroup(ProjectGroup groupdata) db.Deleteable ().Where(it => it.SolutionId.Equals(groupdata.Id)).ExecuteCommand(); } } - } } From 95316f7274118657123c3ddd438ecd8a295219d9 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Thu, 23 Jun 2022 23:15:12 +0800 Subject: [PATCH 027/108] - --- SoEasyPlatform/InitProjects/2_SlnManager.cs | 1 + SoEasyPlatform/InitProjects/3_ProjectManager.cs | 6 +++++- SoEasyPlatform/InitProjects/4_TemplateManager.cs | 14 ++------------ SoEasyPlatform/Models/DbModel/Template.cs | 3 +++ 4 files changed, 11 insertions(+), 13 deletions(-) diff --git a/SoEasyPlatform/InitProjects/2_SlnManager.cs b/SoEasyPlatform/InitProjects/2_SlnManager.cs index a16bd463..657472d7 100644 --- a/SoEasyPlatform/InitProjects/2_SlnManager.cs +++ b/SoEasyPlatform/InitProjects/2_SlnManager.cs @@ -60,6 +60,7 @@ private void ClearGroup(ProjectGroup groupdata) db.Deleteable (groupdata).ExecuteCommand(); db.Deleteable ().Where(it => it.SolutionId.Equals(groupdata.Id)).ExecuteCommand(); db.Deleteable From 8d7b1520b340b341e99634db47e8a8cc228a26ef Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Fri, 24 Jun 2022 06:02:22 +0800 Subject: [PATCH 058/108] - --- .../wwwroot/template/Projects/FurionSqlSugarMvc/API.txt | 6 +++--- .../FurionMvc.Web.Entry/Views/Home/Index.cshtml | 3 +-- .../FurionMvc.Web.Entry/Views/_ViewImports.cshtml | 4 ++-- .../FurionMvc.Web.Entry/Views/_ViewStart.cshtml | 2 +- .../FurionSqlSugarMvc/FurionMvc.Web.Entry/appsettings.json | 4 ++-- .../wwwroot/template/Projects/FurionSqlSugarMvc/IBiz.txt | 4 ++-- 6 files changed, 11 insertions(+), 12 deletions(-) diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/API.txt b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/API.txt index fd763a55..67d8b353 100644 --- a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/API.txt +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/API.txt @@ -10,14 +10,14 @@ namespace Furion.Web.Entry.Controllers { private readonly I@(Model.ClassName)Service _service; - public @(Model.ClassName)Controller(I@(Model.ClassName)Service @(Model.ClassName)Service) + public @(Model.ClassName)Controller(I@(Model.ClassName)Service service) { - _service = systemService; + _service = service; } public IActionResult Index() { - ViewBag.Description = _service.GetDescription(); + ViewBag.Description = _service.Get@(Model.ClassName)(); return View(); } diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Views/Home/Index.cshtml b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Views/Home/Index.cshtml index f33f7b27..6eeb3c5a 100644 --- a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Views/Home/Index.cshtml +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Views/Home/Index.cshtml @@ -1,5 +1,4 @@ -@{ +@@{ ViewData["Title"] = ViewBag.Description; } - \ No newline at end of file diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Views/_ViewImports.cshtml b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Views/_ViewImports.cshtml index 5366a9d4..2133bbd2 100644 --- a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Views/_ViewImports.cshtml +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Views/_ViewImports.cshtml @@ -1,2 +1,2 @@ -@using Furion.Web.Entry -@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers \ No newline at end of file +@@using Furion.Web.Entry +@@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers \ No newline at end of file diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Views/_ViewStart.cshtml b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Views/_ViewStart.cshtml index 1af6e494..1d483743 100644 --- a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Views/_ViewStart.cshtml +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Views/_ViewStart.cshtml @@ -1,3 +1,3 @@ -@{ +@@{ Layout = "_Layout"; } \ No newline at end of file diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/appsettings.json b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/appsettings.json index 09c090e3..5c12c941 100644 --- a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/appsettings.json +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/appsettings.json @@ -10,8 +10,8 @@ "AllowedHosts": "*", "ConnectionConfigs": [ { - "ConnectionString": "Data Source=./Furion.db", - "DbType": "Sqlite", + "ConnectionString": "[ConStr]", + "DbType": "[DbType]", "IsAutoCloseConnection": true } ] diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/IBiz.txt b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/IBiz.txt index de39d447..0857bb07 100644 --- a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/IBiz.txt +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/IBiz.txt @@ -1,8 +1,8 @@ //修改IBiz.txt模版后, 重新启动程序 namespace FurionMvc.Application { - public interface @(Model.ClassName)Service + public interface I@(Model.ClassName)Service { - string GetDescription(); + string Get@(Model.ClassName)(); } } \ No newline at end of file From c78c4dd2fc5a6fcdde21d9ca6eedea0eaa4e4e82 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Fri, 24 Jun 2022 06:09:26 +0800 Subject: [PATCH 059/108] - --- .../template/Projects/FurionSqlSugarMvc/Config.json | 7 +++++++ .../wwwroot/template/Projects/FurionSqlSugarMvc/Razor.txt | 1 + 2 files changed, 8 insertions(+) create mode 100644 SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/Razor.txt diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/Config.json b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/Config.json index d2ef1469..9917bce2 100644 --- a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/Config.json +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/Config.json @@ -20,6 +20,13 @@ "文件后缀": "cs", "描述": "Web" }, + { + "模版": "Razor.txt", + "文件夹": "FurionMvc.Web.Entry", + "子目录": "{0}/Index", + "文件后缀": "cshtml", + "描述": "Web" + }, { "模版": "IBiz.txt", "文件夹": "FurionMvc.Application", diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/Razor.txt b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/Razor.txt new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/Razor.txt @@ -0,0 +1 @@ + \ No newline at end of file From f5fad8c5859e23d80186e98fb7819f679d6cbd18 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Fri, 24 Jun 2022 06:17:13 +0800 Subject: [PATCH 060/108] - --- SoEasyPlatform/SoEasyPlatform.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SoEasyPlatform/SoEasyPlatform.csproj b/SoEasyPlatform/SoEasyPlatform.csproj index 0a1bd5df..e4f324f5 100644 --- a/SoEasyPlatform/SoEasyPlatform.csproj +++ b/SoEasyPlatform/SoEasyPlatform.csproj @@ -176,7 +176,7 @@().Where(it => it.SolutionId.Equals(groupdata.Id)).ExecuteCommand(); + db.Deleteable().Where(it => it.SolutionId.Equals(groupdata.Id)).ExecuteCommand(); } } } diff --git a/SoEasyPlatform/InitProjects/3_ProjectManager.cs b/SoEasyPlatform/InitProjects/3_ProjectManager.cs index f697eca6..b11a1d95 100644 --- a/SoEasyPlatform/InitProjects/3_ProjectManager.cs +++ b/SoEasyPlatform/InitProjects/3_ProjectManager.cs @@ -43,6 +43,7 @@ private int AddProject(int tempId,string slnName, string apiName, string rootPat var files = Directory.GetFiles(projectPath); Project project = new Project(); List fieldIds = new List (); + JArray jArray = new JArray(); foreach (var filePath in files) { @@ -53,13 +54,14 @@ private int AddProject(int tempId,string slnName, string apiName, string rootPat Content = FileSugar.FileToString(filePath), IsDeleted = false, IsInit = true, - Name = "", + Name = System.IO.Path.GetFileName(filePath), Json = "{\"name\":\"" + System.IO.Path.GetFileName(filePath) + "\"}", Suffix = "{\"name\":\"" + System.IO.Path.GetExtension(filePath) + "\"}", SolutionId = groupId + "", Sort = 999, }; + jArray.Add(JObject.Parse( "{ \"name\":\""+file.Name+"\"}")); var fieldId = db.Insertable(file).ExecuteReturnIdentity(); fieldIds.Add(fieldId); } @@ -71,6 +73,8 @@ private int AddProject(int tempId,string slnName, string apiName, string rootPat project.FileInfo = String.Join(",", fieldIds); project.FileSuffix = suff; project.SolutionId = groupId + ""; + project.IsInit = true; + project.FileModel = jArray.ToString(); //project.ty = tempTypeId + ""; var pid = db.Insertable(project).ExecuteReturnIdentity(); return pid; diff --git a/SoEasyPlatform/InitProjects/4_TemplateManager.cs b/SoEasyPlatform/InitProjects/4_TemplateManager.cs index 3cfcf6a0..9681939c 100644 --- a/SoEasyPlatform/InitProjects/4_TemplateManager.cs +++ b/SoEasyPlatform/InitProjects/4_TemplateManager.cs @@ -11,19 +11,9 @@ namespace SoEasyPlatform /// public partial class InitTable { - int tempTypeId = 0; private int AddTemplate(string configUrl, string 文件夹, string 描述, string tempUrl, string slnName) { var name = slnName + "_" + 文件夹 + 描述; - var dbtemp = db.Queryable().First(it => it.Title == name); - if (dbtemp != null && !string.IsNullOrEmpty(dbtemp.Content)) - { - return dbtemp.Id; - } - else if (dbtemp != null) - { - db.Deleteable().In(dbtemp.Id).ExecuteCommand(); - } var temp = new Template() { Content = FileSugar.FileToString(tempUrl), @@ -33,10 +23,10 @@ private int AddTemplate(string configUrl, string 文件夹, string 描述, strin TemplateTypeName = 描述, Title = name, IsInit = true, - TemplateTypeId = Convert.ToInt32(GetTempTypeId(描述, configUrl)) + TemplateTypeId = Convert.ToInt32(GetTempTypeId(描述, configUrl)), + SolutionId=groupId+"" }; var tempId = db.Insertable(temp).ExecuteReturnIdentity(); - tempTypeId = temp.TemplateTypeId; return tempId; } diff --git a/SoEasyPlatform/Models/DbModel/Template.cs b/SoEasyPlatform/Models/DbModel/Template.cs index 557bfca8..441311fa 100644 --- a/SoEasyPlatform/Models/DbModel/Template.cs +++ b/SoEasyPlatform/Models/DbModel/Template.cs @@ -24,6 +24,9 @@ public class Template public bool IsDeleted { get; set; } [SugarColumn(IsNullable =true)] public bool? IsInit { get; set; } + + [SugarColumn(IsNullable = true, Length = 50)] + public string SolutionId { get; set; } } public class TemplateHistory From a6588b7b1c56ea52a1f02a27102e998541de2901 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Thu, 23 Jun 2022 23:20:28 +0800 Subject: [PATCH 028/108] - --- SoEasyPlatform/InitProjects/3_ProjectManager.cs | 1 + SoEasyPlatform/InitProjects/4_TemplateManager.cs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/SoEasyPlatform/InitProjects/3_ProjectManager.cs b/SoEasyPlatform/InitProjects/3_ProjectManager.cs index b11a1d95..609a595f 100644 --- a/SoEasyPlatform/InitProjects/3_ProjectManager.cs +++ b/SoEasyPlatform/InitProjects/3_ProjectManager.cs @@ -75,6 +75,7 @@ private int AddProject(int tempId,string slnName, string apiName, string rootPat project.SolutionId = groupId + ""; project.IsInit = true; project.FileModel = jArray.ToString(); + project.ModelId =tempTypeId; //project.ty = tempTypeId + ""; var pid = db.Insertable(project).ExecuteReturnIdentity(); return pid; diff --git a/SoEasyPlatform/InitProjects/4_TemplateManager.cs b/SoEasyPlatform/InitProjects/4_TemplateManager.cs index 9681939c..832d6d73 100644 --- a/SoEasyPlatform/InitProjects/4_TemplateManager.cs +++ b/SoEasyPlatform/InitProjects/4_TemplateManager.cs @@ -11,6 +11,7 @@ namespace SoEasyPlatform /// public partial class InitTable { + int tempTypeId=0; private int AddTemplate(string configUrl, string 文件夹, string 描述, string tempUrl, string slnName) { var name = slnName + "_" + 文件夹 + 描述; @@ -27,6 +28,7 @@ private int AddTemplate(string configUrl, string 文件夹, string 描述, strin SolutionId=groupId+"" }; var tempId = db.Insertable(temp).ExecuteReturnIdentity(); + tempTypeId = temp.TemplateTypeId; return tempId; } From fb376c0c4a92f84feb2c6c4dcfec10af5a81bd98 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Thu, 23 Jun 2022 23:22:39 +0800 Subject: [PATCH 029/108] - --- SoEasyPlatform/InitProjects/3_ProjectManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SoEasyPlatform/InitProjects/3_ProjectManager.cs b/SoEasyPlatform/InitProjects/3_ProjectManager.cs index 609a595f..aab32435 100644 --- a/SoEasyPlatform/InitProjects/3_ProjectManager.cs +++ b/SoEasyPlatform/InitProjects/3_ProjectManager.cs @@ -67,7 +67,7 @@ private int AddProject(int tempId,string slnName, string apiName, string rootPat } project.ProjentName = slnName+"_"+apiName; projectNames += (apiName + ","); - project.Path = projectPath; + project.Path =FileSugar.MergeUrl("c:\\Projects\\",slnName,apiName); project.SolutionId = "0"; project.TemplateId1 = tempId + ""; project.FileInfo = String.Join(",", fieldIds); From d44e926b4b519132e50339e0c0cfd387fc6f5eff Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Thu, 23 Jun 2022 23:28:46 +0800 Subject: [PATCH 030/108] =?UTF-8?q?=E6=94=AF=E6=8C=81Linux=E8=B7=AF?= =?UTF-8?q?=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SoEasyPlatform/Code/Util/FileHelper.cs | 40 ++++++++++++++++++++++++-- 1 file changed, 38 insertions(+), 2 deletions(-) diff --git a/SoEasyPlatform/Code/Util/FileHelper.cs b/SoEasyPlatform/Code/Util/FileHelper.cs index 0e5da645..e4ef2c74 100644 --- a/SoEasyPlatform/Code/Util/FileHelper.cs +++ b/SoEasyPlatform/Code/Util/FileHelper.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.IO; using System.Linq; +using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; @@ -959,8 +960,43 @@ public static string MergeUrl(params string[] urls) reval.Append(itUrl); itUrl = null; } - return reval.ToString(); - } + return GetRuntimeDirectory(reval.ToString()); + } + #endregion + #region 路径处理 + public static string GetRuntimeDirectory(string path) + { + //ForLinux + if (IsLinuxRunTime()) + return GetLinuxDirectory(path); + //ForWindows + if (IsWindowRunTime()) + return GetWindowDirectory(path); + return path; + } + + //OSPlatform.Windows监测运行环境 + public static bool IsWindowRunTime() + { + return System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(OSPlatform.Windows); + } + + //OSPlatform.Linux运行环境 + public static bool IsLinuxRunTime() + { + return System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(OSPlatform.Linux); + } + + public static string GetLinuxDirectory(string path) + { + string pathTemp = Path.Combine(path); + return pathTemp.Replace("\\", "/"); + } + public static string GetWindowDirectory(string path) + { + string pathTemp = Path.Combine(path); + return pathTemp.Replace("/", "\\"); + } #endregion } } From 059a7a8d50d93603fb00dcf1bcce1ed43ac5e2ee Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Thu, 23 Jun 2022 23:29:18 +0800 Subject: [PATCH 031/108] =?UTF-8?q?=E8=B7=AF=E5=BE=84=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SoEasyPlatform/InitProjects/2_SlnManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SoEasyPlatform/InitProjects/2_SlnManager.cs b/SoEasyPlatform/InitProjects/2_SlnManager.cs index 657472d7..618079f6 100644 --- a/SoEasyPlatform/InitProjects/2_SlnManager.cs +++ b/SoEasyPlatform/InitProjects/2_SlnManager.cs @@ -32,7 +32,7 @@ private ProjectGroup UpdateProject(string slnName, List ids) ProjectIds = ids.ToArray(), Name = slnName, ProjectNames = projectNames.TrimEnd(','), - SolutionPath = "c:\\Projects\\" + slnName, + SolutionPath =FileSugar.MergeUrl("c:\\Projects\\" + slnName), Sort = 100, Id = groupId }; From 94a69eb32fb0f12f316c5c464b8d3d5817da64fe Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Thu, 23 Jun 2022 23:30:40 +0800 Subject: [PATCH 032/108] =?UTF-8?q?=E6=94=AF=E6=8C=81Linux=E8=B7=AF?= =?UTF-8?q?=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SoEasyPlatform/Code/AppStart/InitTable.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SoEasyPlatform/Code/AppStart/InitTable.cs b/SoEasyPlatform/Code/AppStart/InitTable.cs index fb4ad95f..de4c551b 100644 --- a/SoEasyPlatform/Code/AppStart/InitTable.cs +++ b/SoEasyPlatform/Code/AppStart/InitTable.cs @@ -93,7 +93,7 @@ private void InitProject(SqlSugarClient db) FileInfo = _net5lib + "", NameFormat = "DbModels\\{0}", ProjentName = "[简单三层]_方案_实体_Sugar", - Path = @"c:\" + _defaultNamespace + @"\Entites", + Path =FileSugar.MergeUrl( @"c:\" + _defaultNamespace + @"\Entites"), IsDeleted = false, IsInit = true, ModelId = 1 @@ -120,7 +120,7 @@ private void InitProject(SqlSugarClient db) FileInfo =string.Join(",",_WebFiles), ProjentName = "[简单三层]_方案_前端_Sugar", NameFormat = "Controllers\\{0}Controller", - Path = @"c:\" + _defaultNamespace + @"\Api", + Path =FileSugar.MergeUrl( @"c:\" + _defaultNamespace + @"\Api"), IsDeleted = false, IsInit = true, ModelId = 3, @@ -134,7 +134,7 @@ private void InitProject(SqlSugarClient db) { Name = ".Net5 SqlSugar+仓储", ProjectIds = new int[] { pid, pid2, pid3 }, - SolutionPath = "c:\\WebFirst\\Demo01", + SolutionPath =FileSugar.MergeUrl( "c:\\WebFirst\\Demo01"), ProjectNames=String.Join(",", db.Queryable ().In(pid, pid2, pid3).Select(it=>it.ProjentName).ToArray()) }).ExecuteReturnIdentity(); } From 5c10e16d73ec802d792751fc42cd6044d3d76019 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Thu, 23 Jun 2022 23:31:45 +0800 Subject: [PATCH 033/108] - --- SoEasyPlatform/Code/AppStart/InitTable.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SoEasyPlatform/Code/AppStart/InitTable.cs b/SoEasyPlatform/Code/AppStart/InitTable.cs index de4c551b..13f0e237 100644 --- a/SoEasyPlatform/Code/AppStart/InitTable.cs +++ b/SoEasyPlatform/Code/AppStart/InitTable.cs @@ -106,7 +106,7 @@ private void InitProject(SqlSugarClient db) FileModel = "[{ \"name\":\""+_defaultNamespace+ ".Services\",\"nuget\":[{ \"name\":\"SqlSugarCore\",\"version\":\"5.0.7.8\" }]},{\"name\":\"Repository\", \"name_space\":\"" + _defaultNamespace+ ".Services\" }]", FileInfo = _net5lib + ","+_dbcontext, ProjentName = "[简单三层]_方案_业务_Sugar", - Path = @"c:\" + _defaultNamespace + @"\Services", + Path = FileSugar.MergeUrl(@"c:\" + _defaultNamespace + @"\Services"), IsDeleted = false, IsInit = true, ModelId = 2, From 79cd34d647715497ddda8630882e5ef29957b880 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Thu, 23 Jun 2022 23:40:41 +0800 Subject: [PATCH 034/108] - --- SoEasyPlatform/InitProjects/3_ProjectManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SoEasyPlatform/InitProjects/3_ProjectManager.cs b/SoEasyPlatform/InitProjects/3_ProjectManager.cs index aab32435..c6e224da 100644 --- a/SoEasyPlatform/InitProjects/3_ProjectManager.cs +++ b/SoEasyPlatform/InitProjects/3_ProjectManager.cs @@ -55,8 +55,8 @@ private int AddProject(int tempId,string slnName, string apiName, string rootPat IsDeleted = false, IsInit = true, Name = System.IO.Path.GetFileName(filePath), - Json = "{\"name\":\"" + System.IO.Path.GetFileName(filePath) + "\"}", - Suffix = "{\"name\":\"" + System.IO.Path.GetExtension(filePath) + "\"}", + Json = "{\"name\":\"" + System.IO.Path.GetFileNameWithoutExtension(filePath) + "\"}", + Suffix =System.IO.Path.GetExtension(filePath), SolutionId = groupId + "", Sort = 999, From 6747e2e2cc4e931b437307d30cbace9dcdecc4cb Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Thu, 23 Jun 2022 23:50:46 +0800 Subject: [PATCH 035/108] - --- .../wwwroot/template/Projects/FurionSqlSugarApi/Config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/Config.json b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/Config.json index 4d904275..3ee06c02 100644 --- a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/Config.json +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/Config.json @@ -1,7 +1,7 @@ [ { "模版": "Entity.txt", - "文件夹": "FurionApi.Web.Core", + "文件夹": "FurionApi.Core", "子目录": "Entities", "文件后缀": "cs", "描述": "实体" From 88c68ec98892a5b241fa069a945ec585c53e40dd Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Fri, 24 Jun 2022 00:09:28 +0800 Subject: [PATCH 036/108] - --- .../InitProjects/3_ProjectManager.cs | 5 +-- .../Projects/FurionSqlSugarApi/FurionApi.sln | 43 ------------------- 2 files changed, 2 insertions(+), 46 deletions(-) delete mode 100644 SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/FurionApi.sln diff --git a/SoEasyPlatform/InitProjects/3_ProjectManager.cs b/SoEasyPlatform/InitProjects/3_ProjectManager.cs index c6e224da..0cf262da 100644 --- a/SoEasyPlatform/InitProjects/3_ProjectManager.cs +++ b/SoEasyPlatform/InitProjects/3_ProjectManager.cs @@ -54,12 +54,11 @@ private int AddProject(int tempId,string slnName, string apiName, string rootPat Content = FileSugar.FileToString(filePath), IsDeleted = false, IsInit = true, - Name = System.IO.Path.GetFileName(filePath), + Name = System.IO.Path.GetFileNameWithoutExtension(filePath), Json = "{\"name\":\"" + System.IO.Path.GetFileNameWithoutExtension(filePath) + "\"}", Suffix =System.IO.Path.GetExtension(filePath), SolutionId = groupId + "", - Sort = 999, - + Sort = 999, }; jArray.Add(JObject.Parse( "{ \"name\":\""+file.Name+"\"}")); var fieldId = db.Insertable(file).ExecuteReturnIdentity(); diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/FurionApi.sln b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/FurionApi.sln deleted file mode 100644 index 8f842d35..00000000 --- a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/FurionApi.sln +++ /dev/null @@ -1,43 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.3.32519.111 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FurionApi.Application", "FurionApi.Application\FurionApi.Application.csproj", "{AB699EE9-43A8-46F2-A855-04A26DE63372}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FurionApi.Web.Core", "FurionApi.Web.Core\FurionApi.Web.Core.csproj", "{9D14BB78-DA2A-4040-B9DB-5A515B599181}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FurionApi.Core", "FurionApi.Core\FurionApi.Core.csproj", "{4FB30091-15C7-4FD9-AB7D-266814F360F5}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FurionApi.Web.Entry", "FurionApi.Web.Entry\FurionApi.Web.Entry.csproj", "{C8D99F52-EDC7-411F-8300-6DB14BF59E8C}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {AB699EE9-43A8-46F2-A855-04A26DE63372}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {AB699EE9-43A8-46F2-A855-04A26DE63372}.Debug|Any CPU.Build.0 = Debug|Any CPU - {AB699EE9-43A8-46F2-A855-04A26DE63372}.Release|Any CPU.ActiveCfg = Release|Any CPU - {AB699EE9-43A8-46F2-A855-04A26DE63372}.Release|Any CPU.Build.0 = Release|Any CPU - {9D14BB78-DA2A-4040-B9DB-5A515B599181}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {9D14BB78-DA2A-4040-B9DB-5A515B599181}.Debug|Any CPU.Build.0 = Debug|Any CPU - {9D14BB78-DA2A-4040-B9DB-5A515B599181}.Release|Any CPU.ActiveCfg = Release|Any CPU - {9D14BB78-DA2A-4040-B9DB-5A515B599181}.Release|Any CPU.Build.0 = Release|Any CPU - {4FB30091-15C7-4FD9-AB7D-266814F360F5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {4FB30091-15C7-4FD9-AB7D-266814F360F5}.Debug|Any CPU.Build.0 = Debug|Any CPU - {4FB30091-15C7-4FD9-AB7D-266814F360F5}.Release|Any CPU.ActiveCfg = Release|Any CPU - {4FB30091-15C7-4FD9-AB7D-266814F360F5}.Release|Any CPU.Build.0 = Release|Any CPU - {C8D99F52-EDC7-411F-8300-6DB14BF59E8C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {C8D99F52-EDC7-411F-8300-6DB14BF59E8C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {C8D99F52-EDC7-411F-8300-6DB14BF59E8C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {C8D99F52-EDC7-411F-8300-6DB14BF59E8C}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {B2073C2C-0FD3-452B-8047-8134D68E12CE} - EndGlobalSection -EndGlobal From fdf6f7bf8cfdc4865b3e5edae9227ef0fb7811f0 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Fri, 24 Jun 2022 01:03:10 +0800 Subject: [PATCH 037/108] - --- SoEasyPlatform/InitProjects/3_ProjectManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SoEasyPlatform/InitProjects/3_ProjectManager.cs b/SoEasyPlatform/InitProjects/3_ProjectManager.cs index 0cf262da..c17129ba 100644 --- a/SoEasyPlatform/InitProjects/3_ProjectManager.cs +++ b/SoEasyPlatform/InitProjects/3_ProjectManager.cs @@ -40,7 +40,7 @@ private List From de1c3e3e55da071607cea7bc264a5694e0903575 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Fri, 24 Jun 2022 03:10:49 +0800 Subject: [PATCH 050/108] - --- SoEasyPlatform/InitProjects/2_SlnManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SoEasyPlatform/InitProjects/2_SlnManager.cs b/SoEasyPlatform/InitProjects/2_SlnManager.cs index 9bedbbd6..229c8f6e 100644 --- a/SoEasyPlatform/InitProjects/2_SlnManager.cs +++ b/SoEasyPlatform/InitProjects/2_SlnManager.cs @@ -29,10 +29,10 @@ private void AddSln(string sln) groupId = groupdata.Id; } var ids = AddProjects(sln, slnName); - projectGroup = UpdateProject(slnName, ids); + projectGroup = UpdateProjectGroup(slnName, ids); } - private ProjectGroup UpdateProject(string slnName, ListAddProjects(string sln, string slnName) private int AddProject(int tempId,string slnName, string apiName, string rootPath, string projectPath, string suff) { - var files = Directory.GetFiles(projectPath); + var files = FileSugar.GetFileNames(projectPath,"*",true); Project project = new Project(); List fieldIds = new List (); JArray jArray = new JArray(); From 04c2e112d6ba1efe4b3e01ea4aa58c7a1e611ff0 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Fri, 24 Jun 2022 01:23:19 +0800 Subject: [PATCH 038/108] - --- SoEasyPlatform/InitProjects/2_SlnManager.cs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/SoEasyPlatform/InitProjects/2_SlnManager.cs b/SoEasyPlatform/InitProjects/2_SlnManager.cs index 618079f6..9bedbbd6 100644 --- a/SoEasyPlatform/InitProjects/2_SlnManager.cs +++ b/SoEasyPlatform/InitProjects/2_SlnManager.cs @@ -19,8 +19,15 @@ private void AddSln(string sln) var slnName = System.IO.Path.GetFileName(sln); var groupdata = db.Queryable ().First(it => it.Name == slnName); ClearGroup(groupdata); - ProjectGroup projectGroup = CreateEmptyProject(); - groupId = db.Insertable(projectGroup).ExecuteReturnIdentity(); + ProjectGroup projectGroup = groupdata==null?CreateEmptyProject():groupdata; + if (groupdata.Id == 0) + { + groupId = db.Insertable(projectGroup).ExecuteReturnIdentity(); + } + else + { + groupId = groupdata.Id; + } var ids = AddProjects(sln, slnName); projectGroup = UpdateProject(slnName, ids); } @@ -57,7 +64,7 @@ private void ClearGroup(ProjectGroup groupdata) if (groupdata != null) { - db.Deleteable (groupdata).ExecuteCommand(); + //db.Deleteable (groupdata).ExecuteCommand(); db.Deleteable ().Where(it => it.SolutionId.Equals(groupdata.Id)).ExecuteCommand(); db.Deleteable diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/FurionApi.sln b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/FurionApi.sln new file mode 100644 index 00000000..494008d2 --- /dev/null +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/FurionApi.sln @@ -0,0 +1,43 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.1.32414.318 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FurionApi.Core", "FurionApi.Core\FurionApi.Core.csproj", "{9FF70A7E-AF60-41B4-A0D7-A5C31B04E192}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FurionApi.Application", "FurionApi.Application\FurionApi.Application.csproj", "{04B258C9-2AD3-4AF0-BF74-B21C861367D8}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FurionApi.Web.Core", "FurionApi.Web.Core\FurionApi.Web.Core.csproj", "{AFD61673-F263-49F9-BA5B-C24FEC89D48D}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FurionApi.Web.Entry", "FurionApi.Web.Entry\FurionApi.Web.Entry.csproj", "{9433AAF7-FED0-4447-B66D-07B0D419FDF6}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {9FF70A7E-AF60-41B4-A0D7-A5C31B04E192}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9FF70A7E-AF60-41B4-A0D7-A5C31B04E192}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9FF70A7E-AF60-41B4-A0D7-A5C31B04E192}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9FF70A7E-AF60-41B4-A0D7-A5C31B04E192}.Release|Any CPU.Build.0 = Release|Any CPU + {04B258C9-2AD3-4AF0-BF74-B21C861367D8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {04B258C9-2AD3-4AF0-BF74-B21C861367D8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {04B258C9-2AD3-4AF0-BF74-B21C861367D8}.Release|Any CPU.ActiveCfg = Release|Any CPU + {04B258C9-2AD3-4AF0-BF74-B21C861367D8}.Release|Any CPU.Build.0 = Release|Any CPU + {AFD61673-F263-49F9-BA5B-C24FEC89D48D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {AFD61673-F263-49F9-BA5B-C24FEC89D48D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {AFD61673-F263-49F9-BA5B-C24FEC89D48D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {AFD61673-F263-49F9-BA5B-C24FEC89D48D}.Release|Any CPU.Build.0 = Release|Any CPU + {9433AAF7-FED0-4447-B66D-07B0D419FDF6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9433AAF7-FED0-4447-B66D-07B0D419FDF6}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9433AAF7-FED0-4447-B66D-07B0D419FDF6}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9433AAF7-FED0-4447-B66D-07B0D419FDF6}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {DAFECE02-00B6-4790-975F-B20F41C17EAC} + EndGlobalSection +EndGlobal From 32e60fb97f1bde3a996512c5350a754753f3e2ea Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Fri, 24 Jun 2022 02:15:51 +0800 Subject: [PATCH 041/108] - --- .../wwwroot/template/Projects/FurionSqlSugarApi/Config.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/Config.json b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/Config.json index 3ee06c02..1b2a2c9c 100644 --- a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/Config.json +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/Config.json @@ -3,6 +3,7 @@ "模版": "Entity.txt", "文件夹": "FurionApi.Core", "子目录": "Entities", + "格式化": "", "文件后缀": "cs", "描述": "实体" }, @@ -17,6 +18,7 @@ "模版": "API.txt", "文件夹": "FurionApi.Web.Entry", "子目录": "Apis", + "格式化": "{0}Api", "文件后缀": "cs", "描述": "Web" }, @@ -30,6 +32,7 @@ { "模版": "WebCore.txt", "文件夹": "FurionApi.Web.Core", + "格式化": "{0}Service", "子目录": "", "文件后缀": "cs", "描述": "业务" From dff49eed7ae43666f2ae2ebccbace2d32e7f3628 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Fri, 24 Jun 2022 02:27:24 +0800 Subject: [PATCH 042/108] - --- SoEasyPlatform/InitProjects/3_ProjectManager.cs | 8 ++++++-- .../template/Projects/FurionSqlSugarApi/Config.json | 11 ++++------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/SoEasyPlatform/InitProjects/3_ProjectManager.cs b/SoEasyPlatform/InitProjects/3_ProjectManager.cs index c2a0ddc4..57a7322d 100644 --- a/SoEasyPlatform/InitProjects/3_ProjectManager.cs +++ b/SoEasyPlatform/InitProjects/3_ProjectManager.cs @@ -32,13 +32,13 @@ private List().Where(it => it.SolutionId.Equals(groupdata.Id)).ExecuteCommand(); db.Deleteable().Where(it => it.SolutionId.Equals(groupdata.Id)).ExecuteCommand(); From f2a91c8f81c22e5c3756be839f984da99f29c7cb Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Fri, 24 Jun 2022 02:05:04 +0800 Subject: [PATCH 039/108] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90?= =?UTF-8?q?=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Apis/ProjectApp/ProjectController_Common.cs | 8 +++++++- SoEasyPlatform/Code/Util/FileHelper.cs | 5 +++++ SoEasyPlatform/InitProjects/3_ProjectManager.cs | 1 + SoEasyPlatform/Models/DbModel/FileInfo.cs | 3 +++ .../FurionApi.Web.Entry/appsettings.json | 4 ++-- 5 files changed, 18 insertions(+), 3 deletions(-) diff --git a/SoEasyPlatform/Apis/ProjectApp/ProjectController_Common.cs b/SoEasyPlatform/Apis/ProjectApp/ProjectController_Common.cs index f9ab431f..7a16fdf4 100644 --- a/SoEasyPlatform/Apis/ProjectApp/ProjectController_Common.cs +++ b/SoEasyPlatform/Apis/ProjectApp/ProjectController_Common.cs @@ -42,6 +42,12 @@ public static void CreateProject(Project project,int dbid=0) var db = DbScoped.Sugar.Queryable ().InSingle(dbid); fileInfo.Content = fileInfo.Content.Replace("[请设置DbType]","SqlSugar.DbType."+db.DbType+"").Replace("[请设置ConStr]", "@@\""+db.Connection.Replace("@","@@")+"\""); } + else if (dbid > 0 && fileInfo.Content.Contains("[ConStr]")) + { + var db = DbScoped.Sugar.Queryable ().InSingle(dbid); + fileInfo.Content = fileInfo.Content.Replace("[DbType]", db.DbType+"" ) + .Replace("[ConStr]", db.Connection.Replace("@", "@@") ); + } var context = fileInfo.Content; if (!string.IsNullOrEmpty(project.Reference)) { @@ -63,7 +69,7 @@ public static void CreateProject(Project project,int dbid=0) } var html = TemplateHelper.GetTemplateValue(context, context, jsonItem); var name = (jsonItem as IDictionary )["name"]; - var fileName = FileSugar.MergeUrl(project.Path, name + "." + fileInfo.Suffix.TrimStart('.')); + var fileName = FileSugar.MergeUrl(project.Path,fileInfo.Directory, name + "." + fileInfo.Suffix.TrimStart('.')); if (!FileSugar.IsExistFile(fileName)) FileSugar.CreateFile(fileName, html); if (fileName.EndsWith(".csproj")) diff --git a/SoEasyPlatform/Code/Util/FileHelper.cs b/SoEasyPlatform/Code/Util/FileHelper.cs index e4ef2c74..f1edf0af 100644 --- a/SoEasyPlatform/Code/Util/FileHelper.cs +++ b/SoEasyPlatform/Code/Util/FileHelper.cs @@ -934,8 +934,13 @@ public static string MergeUrl(params string[] urls) } else if (urls.Length == 1) { + urls = urls.Where(it => it != null).ToArray(); return urls[0]; } + else + { + urls = urls.Where(it => it != null).ToArray(); + } StringBuilder reval = new StringBuilder(); int i = 0; char slash = '\\'; diff --git a/SoEasyPlatform/InitProjects/3_ProjectManager.cs b/SoEasyPlatform/InitProjects/3_ProjectManager.cs index c17129ba..c2a0ddc4 100644 --- a/SoEasyPlatform/InitProjects/3_ProjectManager.cs +++ b/SoEasyPlatform/InitProjects/3_ProjectManager.cs @@ -51,6 +51,7 @@ private int AddProject(int tempId,string slnName, string apiName, string rootPat FileInfo file = new FileInfo() { ChangeTime = DateTime.Now, + Directory=path.Replace(System.IO.Path.GetFileName(filePath),""), Content = FileSugar.FileToString(filePath), IsDeleted = false, IsInit = true, diff --git a/SoEasyPlatform/Models/DbModel/FileInfo.cs b/SoEasyPlatform/Models/DbModel/FileInfo.cs index 4e55c028..7eb67bd0 100644 --- a/SoEasyPlatform/Models/DbModel/FileInfo.cs +++ b/SoEasyPlatform/Models/DbModel/FileInfo.cs @@ -29,5 +29,8 @@ public class FileInfo /// [SugarColumn(IsNullable = true, Length = 50)] public string SolutionId { get; set; } + + [SugarColumn(IsNullable = true)] + public string Directory { get; set; } } } diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/FurionApi.Web.Entry/appsettings.json b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/FurionApi.Web.Entry/appsettings.json index 09c090e3..5c12c941 100644 --- a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/FurionApi.Web.Entry/appsettings.json +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/FurionApi.Web.Entry/appsettings.json @@ -10,8 +10,8 @@ "AllowedHosts": "*", "ConnectionConfigs": [ { - "ConnectionString": "Data Source=./Furion.db", - "DbType": "Sqlite", + "ConnectionString": "[ConStr]", + "DbType": "[DbType]", "IsAutoCloseConnection": true } ] From a800ddcf6035dcb6185ae740cbc7e8d1aab9a2e3 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Fri, 24 Jun 2022 02:13:12 +0800 Subject: [PATCH 040/108] - --- .../FurionApi.Application.csproj | 10 +++-- .../Projects/FurionSqlSugarApi/FurionApi.sln | 43 +++++++++++++++++++ 2 files changed, 49 insertions(+), 4 deletions(-) create mode 100644 SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/FurionApi.sln diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/FurionApi.Application/FurionApi.Application.csproj b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/FurionApi.Application/FurionApi.Application.csproj index f84312c6..086fd298 100644 --- a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/FurionApi.Application/FurionApi.Application.csproj +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/FurionApi.Application/FurionApi.Application.csproj @@ -7,6 +7,12 @@ enable ++ ++ + + - @@ -22,8 +28,4 @@ - -- AddProjects(string sln, string slnName) CheckProjectConfig(tempUrl); var tempId = AddTemplate(configUrl, 文件夹, 描述, tempUrl, slnName); var projectPath = FileSugar.MergeUrl(sln, 文件夹); - var id = AddProject(tempId, slnName, 文件夹, sln, projectPath, 文件后缀); + var id = AddProject(tempId, slnName, 文件夹, sln, projectPath, 文件后缀, 子目录); result.Add(id); } return result; } - private int AddProject(int tempId,string slnName, string apiName, string rootPath, string projectPath, string suff) + private int AddProject(int tempId,string slnName, string apiName, string rootPath, string projectPath, string suff,string format) { var files = FileSugar.GetFileNames(projectPath,"*",true); Project project = new Project(); @@ -75,6 +75,10 @@ private int AddProject(int tempId,string slnName, string apiName, string rootPat project.SolutionId = groupId + ""; project.IsInit = true; project.FileModel = jArray.ToString(); + if (!string.IsNullOrEmpty(format)) + { + project.NameFormat = format; + } project.ModelId =tempTypeId; //project.ty = tempTypeId + ""; var pid = db.Insertable(project).ExecuteReturnIdentity(); diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/Config.json b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/Config.json index 1b2a2c9c..6baed919 100644 --- a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/Config.json +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/Config.json @@ -2,37 +2,34 @@ { "模版": "Entity.txt", "文件夹": "FurionApi.Core", - "子目录": "Entities", - "格式化": "", + "子目录": "Entities/{0}", "文件后缀": "cs", "描述": "实体" }, { "模版": "Biz.txt", "文件夹": "FurionApi.Application", - "子目录": "Services", + "子目录": "Services/{0}Service", "文件后缀": "cs", "描述": "业务" }, { "模版": "API.txt", "文件夹": "FurionApi.Web.Entry", - "子目录": "Apis", - "格式化": "{0}Api", + "子目录": "Apis/{0}Controller", "文件后缀": "cs", "描述": "Web" }, { "模版": "IBiz.txt", "文件夹": "FurionApi.Application", - "子目录": "IServices", + "子目录": "IServices/I{0}", "文件后缀": "cs", "描述": "业务" }, { "模版": "WebCore.txt", "文件夹": "FurionApi.Web.Core", - "格式化": "{0}Service", "子目录": "", "文件后缀": "cs", "描述": "业务" From e69632e6c5f8f7c0cdc37c7c500aa6d272d79cbd Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Fri, 24 Jun 2022 02:29:52 +0800 Subject: [PATCH 043/108] - --- .../wwwroot/template/Projects/FurionSqlSugarApi/API.txt | 2 +- .../wwwroot/template/Projects/FurionSqlSugarApi/Biz.txt | 2 +- .../wwwroot/template/Projects/FurionSqlSugarApi/IBiz.txt | 2 +- .../wwwroot/template/Projects/FurionSqlSugarApi/WebCore.txt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/API.txt b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/API.txt index 5f282702..1ef2ed95 100644 --- a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/API.txt +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/API.txt @@ -1 +1 @@ - \ No newline at end of file +//修改Api.txt模版后, 重新启动程序 \ No newline at end of file diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/Biz.txt b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/Biz.txt index 5f282702..42d64b0e 100644 --- a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/Biz.txt +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/Biz.txt @@ -1 +1 @@ - \ No newline at end of file +//修改Biz.txt模版后, 重新启动程序 \ No newline at end of file diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/IBiz.txt b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/IBiz.txt index 5f282702..326ef143 100644 --- a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/IBiz.txt +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/IBiz.txt @@ -1 +1 @@ - \ No newline at end of file +//修改IBiz.txt模版后, 重新启动程序 \ No newline at end of file diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/WebCore.txt b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/WebCore.txt index 5f282702..fa38339e 100644 --- a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/WebCore.txt +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/WebCore.txt @@ -1 +1 @@ - \ No newline at end of file +//修改WebCore.txt模版后, 重新启动程序 \ No newline at end of file From 7939688322edcc8fb2d6aab62a4e301ac9bc8e26 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Fri, 24 Jun 2022 02:46:24 +0800 Subject: [PATCH 044/108] - --- .../Apis/ProjectApp/ProjectController_Common.cs | 9 ++++++--- .../template/Projects/FurionSqlSugarApi/Config.json | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/SoEasyPlatform/Apis/ProjectApp/ProjectController_Common.cs b/SoEasyPlatform/Apis/ProjectApp/ProjectController_Common.cs index 7a16fdf4..2cdbd28b 100644 --- a/SoEasyPlatform/Apis/ProjectApp/ProjectController_Common.cs +++ b/SoEasyPlatform/Apis/ProjectApp/ProjectController_Common.cs @@ -70,7 +70,7 @@ public static void CreateProject(Project project,int dbid=0) var html = TemplateHelper.GetTemplateValue(context, context, jsonItem); var name = (jsonItem as IDictionary )["name"]; var fileName = FileSugar.MergeUrl(project.Path,fileInfo.Directory, name + "." + fileInfo.Suffix.TrimStart('.')); - if (!FileSugar.IsExistFile(fileName)) + if (!FileSugar.IsExistFile(fileName)&&fileName.Contains(".")) FileSugar.CreateFile(fileName, html); if (fileName.EndsWith(".csproj")) { @@ -98,8 +98,11 @@ public static void CreateProject(Project project,int dbid=0) Global"); text = text.Replace(@"EndProject Global", sb.ToString()); - FileSugar.DeleteFile(item); - FileSugar.CreateFile(item, text); + if (item.Contains(".")) + { + FileSugar.DeleteFile(item); + FileSugar.CreateFile(item, text); + } } } } diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/Config.json b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/Config.json index 6baed919..2a4b42d6 100644 --- a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/Config.json +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/Config.json @@ -31,7 +31,7 @@ "模版": "WebCore.txt", "文件夹": "FurionApi.Web.Core", "子目录": "", - "文件后缀": "cs", + "文件后缀": "", "描述": "业务" } ] From 8ed92081ad14d32264d3f17395331a33aa2b4900 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Fri, 24 Jun 2022 02:49:46 +0800 Subject: [PATCH 045/108] - --- .../Apis/ProjectApp/ProjectController_Common.cs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/SoEasyPlatform/Apis/ProjectApp/ProjectController_Common.cs b/SoEasyPlatform/Apis/ProjectApp/ProjectController_Common.cs index 2cdbd28b..8bc5d476 100644 --- a/SoEasyPlatform/Apis/ProjectApp/ProjectController_Common.cs +++ b/SoEasyPlatform/Apis/ProjectApp/ProjectController_Common.cs @@ -70,7 +70,7 @@ public static void CreateProject(Project project,int dbid=0) var html = TemplateHelper.GetTemplateValue(context, context, jsonItem); var name = (jsonItem as IDictionary )["name"]; var fileName = FileSugar.MergeUrl(project.Path,fileInfo.Directory, name + "." + fileInfo.Suffix.TrimStart('.')); - if (!FileSugar.IsExistFile(fileName)&&fileName.Contains(".")) + if (!FileSugar.IsExistFile(fileName)&& !string.IsNullOrEmpty(fileInfo.Suffix)) FileSugar.CreateFile(fileName, html); if (fileName.EndsWith(".csproj")) { @@ -98,11 +98,8 @@ public static void CreateProject(Project project,int dbid=0) Global"); text = text.Replace(@"EndProject Global", sb.ToString()); - if (item.Contains(".")) - { - FileSugar.DeleteFile(item); - FileSugar.CreateFile(item, text); - } + FileSugar.DeleteFile(item); + FileSugar.CreateFile(item, text); } } } From 0180c8249a8fa0f239d6d882fad606d173feffc4 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Fri, 24 Jun 2022 02:55:26 +0800 Subject: [PATCH 046/108] - --- SoEasyPlatform/Apis/ProjectApp/ProjectController_Common.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SoEasyPlatform/Apis/ProjectApp/ProjectController_Common.cs b/SoEasyPlatform/Apis/ProjectApp/ProjectController_Common.cs index 8bc5d476..7a16fdf4 100644 --- a/SoEasyPlatform/Apis/ProjectApp/ProjectController_Common.cs +++ b/SoEasyPlatform/Apis/ProjectApp/ProjectController_Common.cs @@ -70,7 +70,7 @@ public static void CreateProject(Project project,int dbid=0) var html = TemplateHelper.GetTemplateValue(context, context, jsonItem); var name = (jsonItem as IDictionary )["name"]; var fileName = FileSugar.MergeUrl(project.Path,fileInfo.Directory, name + "." + fileInfo.Suffix.TrimStart('.')); - if (!FileSugar.IsExistFile(fileName)&& !string.IsNullOrEmpty(fileInfo.Suffix)) + if (!FileSugar.IsExistFile(fileName)) FileSugar.CreateFile(fileName, html); if (fileName.EndsWith(".csproj")) { From 8f4fc6bf6d13be5bcf94511546d490ed0aaa09b2 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Fri, 24 Jun 2022 02:57:41 +0800 Subject: [PATCH 047/108] - --- SoEasyPlatform/Apis/CodeTableApp/CodeTableController.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SoEasyPlatform/Apis/CodeTableApp/CodeTableController.cs b/SoEasyPlatform/Apis/CodeTableApp/CodeTableController.cs index 50fcb0b6..f00f56cf 100644 --- a/SoEasyPlatform/Apis/CodeTableApp/CodeTableController.cs +++ b/SoEasyPlatform/Apis/CodeTableApp/CodeTableController.cs @@ -328,7 +328,10 @@ public ActionResult > CreateFileByProjectId([FromForm] ProjectVie item.name_space = GetNameSpace(project.FileModel, item.name_space); var html = TemplateHelper.GetTemplateValue(key, template, item); var fileName = GetFileName(project, item); - FileSugar.CreateFileReplace(fileName, html, Encoding.UTF8); + if (fileName.Last() != '.') + { + FileSugar.CreateFileReplace(fileName, html, Encoding.UTF8); + } } OpenPath(disOpen, project); ProjectController_Common.CreateProject(project.Id, model.DbId.Value); From 11ecf22eaa65e307f4ef08e76929a8ac04a25434 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Fri, 24 Jun 2022 03:01:31 +0800 Subject: [PATCH 048/108] - --- SoEasyPlatform/InitProjects/3_ProjectManager.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SoEasyPlatform/InitProjects/3_ProjectManager.cs b/SoEasyPlatform/InitProjects/3_ProjectManager.cs index 57a7322d..7202b057 100644 --- a/SoEasyPlatform/InitProjects/3_ProjectManager.cs +++ b/SoEasyPlatform/InitProjects/3_ProjectManager.cs @@ -61,6 +61,10 @@ private int AddProject(int tempId,string slnName, string apiName, string rootPat SolutionId = groupId + "", Sort = 999, }; + if (file.Suffix == "dll") + { + continue; + } jArray.Add(JObject.Parse( "{ \"name\":\""+file.Name+"\"}")); var fieldId = db.Insertable(file).ExecuteReturnIdentity(); fieldIds.Add(fieldId); From 2258d893245e378d55e6769d91c16f23a04ea997 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Fri, 24 Jun 2022 03:08:14 +0800 Subject: [PATCH 049/108] - --- SoEasyPlatform/SoEasyPlatform.csproj | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/SoEasyPlatform/SoEasyPlatform.csproj b/SoEasyPlatform/SoEasyPlatform.csproj index ee877b5a..ae7536f3 100644 --- a/SoEasyPlatform/SoEasyPlatform.csproj +++ b/SoEasyPlatform/SoEasyPlatform.csproj @@ -25,6 +25,10 @@ + + ++ @@ -167,4 +171,8 @@ + + ++ ids) + private ProjectGroup UpdateProjectGroup(string slnName, List ids) { ProjectGroup projectGroup = new ProjectGroup() { From bfc29a690e8c35fce8fad2eef58fbf2787246145 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Fri, 24 Jun 2022 03:10:59 +0800 Subject: [PATCH 051/108] - --- SoEasyPlatform/InitProjects/2_SlnManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SoEasyPlatform/InitProjects/2_SlnManager.cs b/SoEasyPlatform/InitProjects/2_SlnManager.cs index 229c8f6e..e0ce48e1 100644 --- a/SoEasyPlatform/InitProjects/2_SlnManager.cs +++ b/SoEasyPlatform/InitProjects/2_SlnManager.cs @@ -29,7 +29,7 @@ private void AddSln(string sln) groupId = groupdata.Id; } var ids = AddProjects(sln, slnName); - projectGroup = UpdateProjectGroup(slnName, ids); + UpdateProjectGroup(slnName, ids); } private ProjectGroup UpdateProjectGroup(string slnName, List ids) From 6a618e19b63626e839106f7513a528468da9fd25 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Fri, 24 Jun 2022 03:11:22 +0800 Subject: [PATCH 052/108] =?UTF-8?q?=E6=B7=BB=E5=8A=A0FUR=E8=84=9A=E6=89=8B?= =?UTF-8?q?=E6=9E=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SoEasyPlatform/InitProjects/2_SlnManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SoEasyPlatform/InitProjects/2_SlnManager.cs b/SoEasyPlatform/InitProjects/2_SlnManager.cs index e0ce48e1..6c388e83 100644 --- a/SoEasyPlatform/InitProjects/2_SlnManager.cs +++ b/SoEasyPlatform/InitProjects/2_SlnManager.cs @@ -19,10 +19,10 @@ private void AddSln(string sln) var slnName = System.IO.Path.GetFileName(sln); var groupdata = db.Queryable ().First(it => it.Name == slnName); ClearGroup(groupdata); - ProjectGroup projectGroup = groupdata==null?CreateEmptyProject():groupdata; + groupdata = groupdata==null?CreateEmptyProject():groupdata; if (groupdata.Id == 0) { - groupId = db.Insertable(projectGroup).ExecuteReturnIdentity(); + groupId = db.Insertable(groupdata).ExecuteReturnIdentity(); } else { From fe369399b00b9ce64452c0ea22d40550d8ba1f5c Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Fri, 24 Jun 2022 05:27:22 +0800 Subject: [PATCH 053/108] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E6=A8=A1=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../template/Projects/FurionSqlSugarApi/API.txt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/API.txt b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/API.txt index 1ef2ed95..63ee653f 100644 --- a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/API.txt +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarApi/API.txt @@ -1 +1,9 @@ -//修改Api.txt模版后, 重新启动程序 \ No newline at end of file +//修改Api.txt模版后, 重新启动程序 +[DynamicApiController] +public class @(Model.ClassName)Api +{ + public string Test() + { + return "Hello, Furion"; + } +} \ No newline at end of file From cab950ed8662f58eded4392315a457df77d27cec Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Fri, 24 Jun 2022 05:35:13 +0800 Subject: [PATCH 054/108] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=A8=A1=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SoEasyPlatform/SoEasyPlatform.csproj | 20 +++++++ .../Projects/FurionSqlSugarMvc/API.txt | 9 ++++ .../Projects/FurionSqlSugarMvc/Biz.txt | 1 + .../Projects/FurionSqlSugarMvc/Config.json | 38 +++++++++++++ .../Projects/FurionSqlSugarMvc/Entity.txt | 50 ++++++++++++++++++ .../FurionMvc.Application.csproj | 18 +++++++ .../FurionMvc.Application.xml | 8 +++ .../FurionMvc.Application/GlobalUsings.cs | 14 +++++ .../System/ISystemService.cs | 7 +++ .../System/SystemService.cs | 10 ++++ .../FurionMvc.Core/DbContext.cs | 23 ++++++++ .../FurionMvc.Core/FurionMvc.Core.csproj | 19 +++++++ .../FurionMvc.Core/FurionMvc.Core.xml | 18 +++++++ .../FurionMvc.Web.Core.csproj | 17 ++++++ .../FurionMvc.Web.Core/FurionMvc.Web.Core.xml | 8 +++ .../FurionMvc.Web.Core/Startup.cs | 46 ++++++++++++++++ .../Controllers/HomeController.cs | 24 +++++++++ .../FurionMvc.Web.Entry.csproj | 13 +++++ .../FurionMvc.Web.Entry/Program.cs | 1 + .../Properties/launchSettings.json | 28 ++++++++++ .../Views/Home/Index.cshtml | 12 +++++ .../Views/Shared/_Layout.cshtml | 11 ++++ .../Views/_ViewImports.cshtml | 2 + .../Views/_ViewStart.cshtml | 3 ++ .../appsettings.Development.json | 9 ++++ .../FurionMvc.Web.Entry/appsettings.json | 18 +++++++ .../wwwroot/images/logo.png | Bin 0 -> 6255 bytes .../Projects/FurionSqlSugarMvc/FurionMvc.sln | 43 +++++++++++++++ .../Projects/FurionSqlSugarMvc/IBiz.txt | 1 + .../Projects/FurionSqlSugarMvc/WebCore.txt | 1 + 30 files changed, 472 insertions(+) create mode 100644 SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/API.txt create mode 100644 SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/Biz.txt create mode 100644 SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/Config.json create mode 100644 SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/Entity.txt create mode 100644 SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Application/FurionMvc.Application.csproj create mode 100644 SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Application/FurionMvc.Application.xml create mode 100644 SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Application/GlobalUsings.cs create mode 100644 SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Application/System/ISystemService.cs create mode 100644 SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Application/System/SystemService.cs create mode 100644 SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Core/DbContext.cs create mode 100644 SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Core/FurionMvc.Core.csproj create mode 100644 SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Core/FurionMvc.Core.xml create mode 100644 SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Core/FurionMvc.Web.Core.csproj create mode 100644 SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Core/FurionMvc.Web.Core.xml create mode 100644 SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Core/Startup.cs create mode 100644 SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Controllers/HomeController.cs create mode 100644 SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/FurionMvc.Web.Entry.csproj create mode 100644 SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Program.cs create mode 100644 SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Properties/launchSettings.json create mode 100644 SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Views/Home/Index.cshtml create mode 100644 SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Views/Shared/_Layout.cshtml create mode 100644 SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Views/_ViewImports.cshtml create mode 100644 SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Views/_ViewStart.cshtml create mode 100644 SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/appsettings.Development.json create mode 100644 SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/appsettings.json create mode 100644 SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/wwwroot/images/logo.png create mode 100644 SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.sln create mode 100644 SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/IBiz.txt create mode 100644 SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/WebCore.txt diff --git a/SoEasyPlatform/SoEasyPlatform.csproj b/SoEasyPlatform/SoEasyPlatform.csproj index ae7536f3..a1d62f5d 100644 --- a/SoEasyPlatform/SoEasyPlatform.csproj +++ b/SoEasyPlatform/SoEasyPlatform.csproj @@ -33,6 +33,16 @@ + + ++ + + + + + + @@ -42,6 +52,16 @@ + + + + + + + + + + diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/API.txt b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/API.txt new file mode 100644 index 00000000..63ee653f --- /dev/null +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/API.txt @@ -0,0 +1,9 @@ +//修改Api.txt模版后, 重新启动程序 +[DynamicApiController] +public class @(Model.ClassName)Api +{ + public string Test() + { + return "Hello, Furion"; + } +} \ No newline at end of file diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/Biz.txt b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/Biz.txt new file mode 100644 index 00000000..42d64b0e --- /dev/null +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/Biz.txt @@ -0,0 +1 @@ +//修改Biz.txt模版后, 重新启动程序 \ No newline at end of file diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/Config.json b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/Config.json new file mode 100644 index 00000000..2a4b42d6 --- /dev/null +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/Config.json @@ -0,0 +1,38 @@ +[ + { + "模版": "Entity.txt", + "文件夹": "FurionApi.Core", + "子目录": "Entities/{0}", + "文件后缀": "cs", + "描述": "实体" + }, + { + "模版": "Biz.txt", + "文件夹": "FurionApi.Application", + "子目录": "Services/{0}Service", + "文件后缀": "cs", + "描述": "业务" + }, + { + "模版": "API.txt", + "文件夹": "FurionApi.Web.Entry", + "子目录": "Apis/{0}Controller", + "文件后缀": "cs", + "描述": "Web" + }, + { + "模版": "IBiz.txt", + "文件夹": "FurionApi.Application", + "子目录": "IServices/I{0}", + "文件后缀": "cs", + "描述": "业务" + }, + { + "模版": "WebCore.txt", + "文件夹": "FurionApi.Web.Core", + "子目录": "", + "文件后缀": "", + "描述": "业务" + } +] + \ No newline at end of file diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/Entity.txt b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/Entity.txt new file mode 100644 index 00000000..70f9b5ab --- /dev/null +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/Entity.txt @@ -0,0 +1,50 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace @Model.name_space +{ + /// + /// @((Model.Description+"").Replace("\r","").Replace("\n","")) + /// + [SugarTable("@(Model.TableName)")] + public class @(Model.ClassName) + { +@foreach (var item in Model.PropertyGens) +{ + var isPrimaryKey = item.IsPrimaryKey ? ",IsPrimaryKey = true" : ""; + var isIdentity = item.IsIdentity ? ",IsIdentity = true" : ""; + var isNull=(item.IsNullable&&item.Type!="string"&&item.IsSpecialType==false&&item.Type!="byte[]")?"?":""; + var isIgnore=(item.IsIgnore?",IsIgnore = true":""); + var isJson=(item.CodeType.StartsWith("json")?",IsJson= true":""); + + var newPropertyName=item.PropertyName; //这里可以用C#处理 实体属性的显式格式 + //想和数据库一样就用 newPropertyName=item.DbColumnName + if(System.Text.RegularExpressions.Regex.IsMatch(newPropertyName.Substring(0,1), "[0-9]")) + { + newPropertyName="_"+newPropertyName;//处理属性名开头为数字情况 + } + if(newPropertyName==Model.ClassName) + { + newPropertyName="_"+newPropertyName;//处理属性名不能等于类名 + } + + + var desc=(item.Description+"").Replace("\r","").Replace("\n","");//处理换行 + + if(isIgnore!="") + { + isPrimaryKey =isIdentity =isNull=""; + } + @:///+ @:/// @(desc) + @if(item.DefaultValue!=null) + { + @:/// 默认值: @Raw(item.DefaultValue) + } + @:/// + @: [SugarColumn(ColumnName="@item.DbColumnName" @(isPrimaryKey) @(isIdentity) @(isIgnore) @(isJson))] + @: public @Raw(item.Type)@isNull @newPropertyName { get; set; } + } + } +} diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Application/FurionMvc.Application.csproj b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Application/FurionMvc.Application.csproj new file mode 100644 index 00000000..4e4cf3d9 --- /dev/null +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Application/FurionMvc.Application.csproj @@ -0,0 +1,18 @@ ++ + diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Application/FurionMvc.Application.xml b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Application/FurionMvc.Application.xml new file mode 100644 index 00000000..5a46a8be --- /dev/null +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Application/FurionMvc.Application.xml @@ -0,0 +1,8 @@ + ++ + +net6.0 +1701;1702;1591 +FurionMvc.Application.xml +enable ++ + ++ + + ++ + diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Application/GlobalUsings.cs b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Application/GlobalUsings.cs new file mode 100644 index 00000000..f7d2c04d --- /dev/null +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Application/GlobalUsings.cs @@ -0,0 +1,14 @@ +global using Furion; +global using Furion.DataEncryption; +global using Furion.DataValidation; +global using Furion.DependencyInjection; +global using Furion.DynamicApiController; +global using Furion.Extensions; +global using Furion.FriendlyException; +global using Mapster; +global using Microsoft.AspNetCore.Authorization; +global using Microsoft.AspNetCore.Http; +global using Microsoft.AspNetCore.Mvc; +global using Microsoft.CodeAnalysis; +global using SqlSugar; +global using System.ComponentModel.DataAnnotations; diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Application/System/ISystemService.cs b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Application/System/ISystemService.cs new file mode 100644 index 00000000..10c0f05b --- /dev/null +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Application/System/ISystemService.cs @@ -0,0 +1,7 @@ +namespace FurionMvc.Application +{ + public interface ISystemService + { + string GetDescription(); + } +} \ No newline at end of file diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Application/System/SystemService.cs b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Application/System/SystemService.cs new file mode 100644 index 00000000..425d8c4a --- /dev/null +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Application/System/SystemService.cs @@ -0,0 +1,10 @@ +namespace FurionMvc.Application +{ + public class SystemService : ISystemService, ITransient + { + public string GetDescription() + { + return "让 .NET 开发更简单,更通用,更流行。"; + } + } +} \ No newline at end of file diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Core/DbContext.cs b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Core/DbContext.cs new file mode 100644 index 00000000..f002f126 --- /dev/null +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Core/DbContext.cs @@ -0,0 +1,23 @@ +using Furion; +using SqlSugar; +using System.Collections.Generic; + +namespace FurionMvc.Core +{ + ///+ +FurionMvc.Application ++ ++ /// 数据库上下文对象 + /// + public static class DbContext + { + ///+ /// SqlSugar 数据库实例 + /// + public static readonly SqlSugarScope Instance = new( + // 读取 appsettings.json 中的 ConnectionConfigs 配置节点 + App.GetConfig>("ConnectionConfigs") + , db => + { + // 这里配置全局事件,比如拦截执行 SQL + }); + } +} \ No newline at end of file diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Core/FurionMvc.Core.csproj b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Core/FurionMvc.Core.csproj new file mode 100644 index 00000000..29b9f10b --- /dev/null +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Core/FurionMvc.Core.csproj @@ -0,0 +1,19 @@ +
+ + diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Core/FurionMvc.Core.xml b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Core/FurionMvc.Core.xml new file mode 100644 index 00000000..39772d3a --- /dev/null +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Core/FurionMvc.Core.xml @@ -0,0 +1,18 @@ + ++ + +net6.0 +1701;1702;1591 +FurionMvc.Core.xml ++ + ++ + + ++ + + + diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Core/FurionMvc.Web.Core.csproj b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Core/FurionMvc.Web.Core.csproj new file mode 100644 index 00000000..eebc14c3 --- /dev/null +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Core/FurionMvc.Web.Core.csproj @@ -0,0 +1,17 @@ ++ +FurionMvc.Core ++ ++ ++ 数据库上下文对象 + ++ ++ SqlSugar 数据库实例 + ++ + diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Core/FurionMvc.Web.Core.xml b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Core/FurionMvc.Web.Core.xml new file mode 100644 index 00000000..d816c05b --- /dev/null +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Core/FurionMvc.Web.Core.xml @@ -0,0 +1,8 @@ + ++ + +net6.0 +1701;1702;1591 +FurionMvc.Web.Core.xml ++ + ++ + + ++ + diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Core/Startup.cs b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Core/Startup.cs new file mode 100644 index 00000000..f25feee6 --- /dev/null +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Core/Startup.cs @@ -0,0 +1,46 @@ +using Furion; +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Hosting; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Hosting; + +namespace FurionMvc.Web.Core +{ + public class Startup : AppStartup + { + public void ConfigureServices(IServiceCollection services) + { + services.AddControllersWithViews() + .AddInjectBase(); + } + + public void Configure(IApplicationBuilder app, IWebHostEnvironment env) + { + if (env.IsDevelopment()) + { + app.UseDeveloperExceptionPage(); + } + else + { + app.UseExceptionHandler("/Home/Error"); + app.UseHsts(); + } + + app.UseHttpsRedirection(); + app.UseStaticFiles(); + + app.UseRouting(); + + app.UseAuthorization(); + + app.UseInjectBase(); + + app.UseEndpoints(endpoints => + { + endpoints.MapControllerRoute( + name: "default", + pattern: "{controller=Home}/{action=Index}/{id?}"); + }); + } + } +} \ No newline at end of file diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Controllers/HomeController.cs b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Controllers/HomeController.cs new file mode 100644 index 00000000..80b564fb --- /dev/null +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Controllers/HomeController.cs @@ -0,0 +1,24 @@ +using FurionMvc.Application; +using Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.Mvc; + +namespace Furion.Web.Entry.Controllers +{ + [AllowAnonymous] + public class HomeController : Controller + { + private readonly ISystemService _systemService; + + public HomeController(ISystemService systemService) + { + _systemService = systemService; + } + + public IActionResult Index() + { + ViewBag.Description = _systemService.GetDescription(); + + return View(); + } + } +} \ No newline at end of file diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/FurionMvc.Web.Entry.csproj b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/FurionMvc.Web.Entry.csproj new file mode 100644 index 00000000..699326a2 --- /dev/null +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/FurionMvc.Web.Entry.csproj @@ -0,0 +1,13 @@ ++ +FurionMvc.Web.Core ++ ++ + diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Program.cs b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Program.cs new file mode 100644 index 00000000..3fe06287 --- /dev/null +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Program.cs @@ -0,0 +1 @@ +Serve.Run(RunOptions.Default); \ No newline at end of file diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Properties/launchSettings.json b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Properties/launchSettings.json new file mode 100644 index 00000000..d8e76fea --- /dev/null +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Properties/launchSettings.json @@ -0,0 +1,28 @@ +{ + "iisSettings": { + "windowsAuthentication": false, + "anonymousAuthentication": true, + "iisExpress": { + "applicationUrl": "http://localhost:48908", + "sslPort": 44347 + } + }, + "profiles": { + "IIS Express": { + "commandName": "IISExpress", + "launchBrowser": true, + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "FurionMvc.Web.Entry": { + "commandName": "Project", + "dotnetRunMessages": "true", + "launchBrowser": true, + "applicationUrl": "https://localhost:5001;http://localhost:5000", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + } + } +} \ No newline at end of file diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Views/Home/Index.cshtml b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Views/Home/Index.cshtml new file mode 100644 index 00000000..62824816 --- /dev/null +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Views/Home/Index.cshtml @@ -0,0 +1,12 @@ +@{ + ViewData["Title"] = ViewBag.Description; +} + + \ No newline at end of file diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Views/Shared/_Layout.cshtml b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Views/Shared/_Layout.cshtml new file mode 100644 index 00000000..f5f94a03 --- /dev/null +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Views/Shared/_Layout.cshtml @@ -0,0 +1,11 @@ + + + + + ++ + +net6.0 +enable +en-US ++ + ++ @ViewData["Title"] - Furion + + + @RenderBody() + + \ No newline at end of file diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Views/_ViewImports.cshtml b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Views/_ViewImports.cshtml new file mode 100644 index 00000000..5366a9d4 --- /dev/null +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Views/_ViewImports.cshtml @@ -0,0 +1,2 @@ +@using Furion.Web.Entry +@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers \ No newline at end of file diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Views/_ViewStart.cshtml b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Views/_ViewStart.cshtml new file mode 100644 index 00000000..1af6e494 --- /dev/null +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Views/_ViewStart.cshtml @@ -0,0 +1,3 @@ +@{ + Layout = "_Layout"; +} \ No newline at end of file diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/appsettings.Development.json b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/appsettings.Development.json new file mode 100644 index 00000000..45fe774a --- /dev/null +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/appsettings.Development.json @@ -0,0 +1,9 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft": "Warning", + "Microsoft.Hosting.Lifetime": "Information" + } + } +} \ No newline at end of file diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/appsettings.json b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/appsettings.json new file mode 100644 index 00000000..09c090e3 --- /dev/null +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/appsettings.json @@ -0,0 +1,18 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft": "Warning", + "Microsoft.Hosting.Lifetime": "Information", + "Microsoft.EntityFrameworkCore": "Information" + } + }, + "AllowedHosts": "*", + "ConnectionConfigs": [ + { + "ConnectionString": "Data Source=./Furion.db", + "DbType": "Sqlite", + "IsAutoCloseConnection": true + } + ] +} \ No newline at end of file diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/wwwroot/images/logo.png b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/wwwroot/images/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..166b80180fb7e665c6617c39393aa57dd204046a GIT binary patch literal 6255 zcmaJ`XEI}G&9j-pyi<@At7Nf(1)8}jLv^v z8mfygZY9g|V&L}GvGKLQy7&eld{88s&R8cD&;X5aMVX@z&OzR9P--M3 zq8VOZU1}dq@K(8o3 s6qSJgen1z| ze4Jfi=5XDA$GTXlgWP<5aWG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@D`hoq2vuq+f+Fh z=8uy~Roe%tCZjmN$MNm8(xKZ%%UIh)((-C%rH}sADF$iE7#P;!k>{J;8|nbLVqwYKQ-|EJs>RuEq S9+nnqWW9(X9pD&qJaxZYvqD&zt(#8_zLb#ZFPECZ z;Z{G;LcNC@d4&@#pSC1m?Lf`SKWjjM*5*;e5j`@6t-hn+j`waR2CZc5oTiC=`9pLN zbe%i^(hx%5S5ceNk&|8%m{d_B5pGrcD?(q>Tl2P7^wMH$@WHoOF6{zn=h6^)`TBa4 z8+sZ0jl3B=PvI(CHH<6cPv!LRY`Bw$-w=^#WqU{8kEa;U7b;AsF^;^0dLzgbb^p?1 zyI`S`ezrvieLZ_jL(N;afXH(Cg!!3J&O6RB@4pPS_S6^D?7z~cCb9@#r)Xn;@mzsz zU}WaJN0N5dbv9@@wOP2~0WWd2oL5}dLiN^!
9(l8K6+LpRAj5N zhC5p+2h`KX5yav5dRSIRH@FhS|53hMZ}yXswV!A`j5LOtzJ9E REzO;Xx*+tE;0y g zf%AIzzrCUtN!i-1{+dGWw)At=JAfiO;c{rOemS@YykT7_nQTCKYH4U!CYdadZ_ZR- z?vXTlTOzbAEBrw{2fM*08~^|S literal 0 HcmV?d00001 diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.sln b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.sln new file mode 100644 index 00000000..f69be45d --- /dev/null +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.sln @@ -0,0 +1,43 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.3.32519.111 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FurionMvc.Application", "FurionMvc.Application\FurionMvc.Application.csproj", "{AB699EE9-43A8-46F2-A855-04A26DE63372}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FurionMvc.Web.Core", "FurionMvc.Web.Core\FurionMvc.Web.Core.csproj", "{9D14BB78-DA2A-4040-B9DB-5A515B599181}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FurionMvc.Core", "FurionMvc.Core\FurionMvc.Core.csproj", "{4FB30091-15C7-4FD9-AB7D-266814F360F5}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FurionMvc.Web.Entry", "FurionMvc.Web.Entry\FurionMvc.Web.Entry.csproj", "{F00DACED-A3D1-4F48-AA22-52BE6D368A31}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {AB699EE9-43A8-46F2-A855-04A26DE63372}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {AB699EE9-43A8-46F2-A855-04A26DE63372}.Debug|Any CPU.Build.0 = Debug|Any CPU + {AB699EE9-43A8-46F2-A855-04A26DE63372}.Release|Any CPU.ActiveCfg = Release|Any CPU + {AB699EE9-43A8-46F2-A855-04A26DE63372}.Release|Any CPU.Build.0 = Release|Any CPU + {9D14BB78-DA2A-4040-B9DB-5A515B599181}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9D14BB78-DA2A-4040-B9DB-5A515B599181}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9D14BB78-DA2A-4040-B9DB-5A515B599181}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9D14BB78-DA2A-4040-B9DB-5A515B599181}.Release|Any CPU.Build.0 = Release|Any CPU + {4FB30091-15C7-4FD9-AB7D-266814F360F5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4FB30091-15C7-4FD9-AB7D-266814F360F5}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4FB30091-15C7-4FD9-AB7D-266814F360F5}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4FB30091-15C7-4FD9-AB7D-266814F360F5}.Release|Any CPU.Build.0 = Release|Any CPU + {F00DACED-A3D1-4F48-AA22-52BE6D368A31}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F00DACED-A3D1-4F48-AA22-52BE6D368A31}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F00DACED-A3D1-4F48-AA22-52BE6D368A31}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F00DACED-A3D1-4F48-AA22-52BE6D368A31}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {B2073C2C-0FD3-452B-8047-8134D68E12CE} + EndGlobalSection +EndGlobal diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/IBiz.txt b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/IBiz.txt new file mode 100644 index 00000000..326ef143 --- /dev/null +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/IBiz.txt @@ -0,0 +1 @@ +//修改IBiz.txt模版后, 重新启动程序 \ No newline at end of file diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/WebCore.txt b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/WebCore.txt new file mode 100644 index 00000000..fa38339e --- /dev/null +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/WebCore.txt @@ -0,0 +1 @@ +//修改WebCore.txt模版后, 重新启动程序 \ No newline at end of file From 98377f531ada7487c9eb4911bbf20a77e9a7d93b Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Fri, 24 Jun 2022 05:43:00 +0800 Subject: [PATCH 055/108] - --- SoEasyPlatform/SoEasyPlatform.csproj | 3 --- .../Projects/FurionSqlSugarMvc/API.txt | 24 +++++++++++++++---- .../Projects/FurionSqlSugarMvc/Biz.txt | 12 +++++++++- .../Projects/FurionSqlSugarMvc/Config.json | 12 +++++----- .../System/ISystemService.cs | 7 ------ .../System/SystemService.cs | 10 -------- .../Controllers/HomeController.cs | 24 ------------------- .../Views/Home/Index.cshtml | 9 +------ .../Projects/FurionSqlSugarMvc/IBiz.txt | 9 ++++++- 9 files changed, 46 insertions(+), 64 deletions(-) delete mode 100644 SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Application/System/ISystemService.cs delete mode 100644 SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Application/System/SystemService.cs delete mode 100644 SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Controllers/HomeController.cs diff --git a/SoEasyPlatform/SoEasyPlatform.csproj b/SoEasyPlatform/SoEasyPlatform.csproj index a1d62f5d..6b8fd025 100644 --- a/SoEasyPlatform/SoEasyPlatform.csproj +++ b/SoEasyPlatform/SoEasyPlatform.csproj @@ -35,11 +35,8 @@ diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/API.txt b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/API.txt index 63ee653f..fd763a55 100644 --- a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/API.txt +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/API.txt @@ -1,9 +1,25 @@ //修改Api.txt模版后, 重新启动程序 -[DynamicApiController] -public class @(Model.ClassName)Api +using FurionMvc.Application; +using Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.Mvc; + +namespace Furion.Web.Entry.Controllers { - public string Test() + [AllowAnonymous] + public class @(Model.ClassName)Controller : Controller { - return "Hello, Furion"; + private readonly I@(Model.ClassName)Service _service; + + public @(Model.ClassName)Controller(I@(Model.ClassName)Service @(Model.ClassName)Service) + { + _service = systemService; + } + + public IActionResult Index() + { + ViewBag.Description = _service.GetDescription(); + + return View(); + } } } \ No newline at end of file diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/Biz.txt b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/Biz.txt index 42d64b0e..87e67bfc 100644 --- a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/Biz.txt +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/Biz.txt @@ -1 +1,11 @@ -//修改Biz.txt模版后, 重新启动程序 \ No newline at end of file +//修改Biz.txt模版后, 重新启动程序 +namespace FurionMvc.Application +{ + public class @(Model.ClassName)Service : I@(Model.ClassName)Service, ITransient + { + public string Get@(Model.ClassName)() + { + return "让 .NET 开发更简单,更通用,更流行。"; + } + } +} \ No newline at end of file diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/Config.json b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/Config.json index 2a4b42d6..d2ef1469 100644 --- a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/Config.json +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/Config.json @@ -1,35 +1,35 @@ [ { "模版": "Entity.txt", - "文件夹": "FurionApi.Core", + "文件夹": "FurionMvc.Core", "子目录": "Entities/{0}", "文件后缀": "cs", "描述": "实体" }, { "模版": "Biz.txt", - "文件夹": "FurionApi.Application", + "文件夹": "FurionMvc.Application", "子目录": "Services/{0}Service", "文件后缀": "cs", "描述": "业务" }, { "模版": "API.txt", - "文件夹": "FurionApi.Web.Entry", - "子目录": "Apis/{0}Controller", + "文件夹": "FurionMvc.Web.Entry", + "子目录": "Controllers/{0}Controller", "文件后缀": "cs", "描述": "Web" }, { "模版": "IBiz.txt", - "文件夹": "FurionApi.Application", + "文件夹": "FurionMvc.Application", "子目录": "IServices/I{0}", "文件后缀": "cs", "描述": "业务" }, { "模版": "WebCore.txt", - "文件夹": "FurionApi.Web.Core", + "文件夹": "FurionMvc.Web.Core", "子目录": "", "文件后缀": "", "描述": "业务" diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Application/System/ISystemService.cs b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Application/System/ISystemService.cs deleted file mode 100644 index 10c0f05b..00000000 --- a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Application/System/ISystemService.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace FurionMvc.Application -{ - public interface ISystemService - { - string GetDescription(); - } -} \ No newline at end of file diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Application/System/SystemService.cs b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Application/System/SystemService.cs deleted file mode 100644 index 425d8c4a..00000000 --- a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Application/System/SystemService.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace FurionMvc.Application -{ - public class SystemService : ISystemService, ITransient - { - public string GetDescription() - { - return "让 .NET 开发更简单,更通用,更流行。"; - } - } -} \ No newline at end of file diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Controllers/HomeController.cs b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Controllers/HomeController.cs deleted file mode 100644 index 80b564fb..00000000 --- a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Controllers/HomeController.cs +++ /dev/null @@ -1,24 +0,0 @@ -using FurionMvc.Application; -using Microsoft.AspNetCore.Authorization; -using Microsoft.AspNetCore.Mvc; - -namespace Furion.Web.Entry.Controllers -{ - [AllowAnonymous] - public class HomeController : Controller - { - private readonly ISystemService _systemService; - - public HomeController(ISystemService systemService) - { - _systemService = systemService; - } - - public IActionResult Index() - { - ViewBag.Description = _systemService.GetDescription(); - - return View(); - } - } -} \ No newline at end of file diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Views/Home/Index.cshtml b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Views/Home/Index.cshtml index 62824816..f33f7b27 100644 --- a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Views/Home/Index.cshtml +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/FurionMvc.Web.Entry/Views/Home/Index.cshtml @@ -2,11 +2,4 @@ ViewData["Title"] = ViewBag.Description; } - \ No newline at end of file + \ No newline at end of file diff --git a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/IBiz.txt b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/IBiz.txt index 326ef143..de39d447 100644 --- a/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/IBiz.txt +++ b/SoEasyPlatform/wwwroot/template/Projects/FurionSqlSugarMvc/IBiz.txt @@ -1 +1,8 @@ -//修改IBiz.txt模版后, 重新启动程序 \ No newline at end of file +//修改IBiz.txt模版后, 重新启动程序 +namespace FurionMvc.Application +{ + public interface @(Model.ClassName)Service + { + string GetDescription(); + } +} \ No newline at end of file From 189ae89631664999d7b0fdf31b310ec6a3c92f50 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Fri, 24 Jun 2022 05:43:47 +0800 Subject: [PATCH 056/108] - --- SoEasyPlatform/SoEasyPlatform.csproj | 2 -- 1 file changed, 2 deletions(-) diff --git a/SoEasyPlatform/SoEasyPlatform.csproj b/SoEasyPlatform/SoEasyPlatform.csproj index 6b8fd025..cae1ed26 100644 --- a/SoEasyPlatform/SoEasyPlatform.csproj +++ b/SoEasyPlatform/SoEasyPlatform.csproj @@ -49,10 +49,8 @@ - - - - - From 84c4387223f7c9b956983db5e1b94dcb388aa11f Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Fri, 24 Jun 2022 05:46:30 +0800 Subject: [PATCH 057/108] - --- SoEasyPlatform/SoEasyPlatform.csproj | 29 +++++++++------------------- 1 file changed, 9 insertions(+), 20 deletions(-) diff --git a/SoEasyPlatform/SoEasyPlatform.csproj b/SoEasyPlatform/SoEasyPlatform.csproj index cae1ed26..0a1bd5df 100644 --- a/SoEasyPlatform/SoEasyPlatform.csproj +++ b/SoEasyPlatform/SoEasyPlatform.csproj @@ -7,39 +7,36 @@ + -+ + + + + + + - -- - - -- - - - @@ -49,14 +46,6 @@ - - - - - - - - @@ -187,7 +176,7 @@ - + - + + Always @@ -175,8 +176,4 @@ -- -- - Always @@ -176,4 +175,8 @@ ++ ++ @ViewData["Title"] - Furion +@@ViewData["Title"] - Furion - @RenderBody() + @@RenderBody()