diff --git a/ZR.Common/Extension/Extension.Convert.cs b/Infrastructure/Extensions/Extension.Convert.cs similarity index 99% rename from ZR.Common/Extension/Extension.Convert.cs rename to Infrastructure/Extensions/Extension.Convert.cs index febe6bb..4710dfd 100644 --- a/ZR.Common/Extension/Extension.Convert.cs +++ b/Infrastructure/Extensions/Extension.Convert.cs @@ -5,7 +5,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -namespace ZR.Common.Extension +namespace Infrastructure.Extensions { public static partial class Extensions { diff --git a/ZR.Common/Extension/Extension.Enum.cs b/Infrastructure/Extensions/Extension.Enum.cs similarity index 98% rename from ZR.Common/Extension/Extension.Enum.cs rename to Infrastructure/Extensions/Extension.Enum.cs index d5be020..72710ff 100644 --- a/ZR.Common/Extension/Extension.Enum.cs +++ b/Infrastructure/Extensions/Extension.Enum.cs @@ -7,7 +7,7 @@ using System.Text; using System.Threading.Tasks; //using Newtonsoft.Json; -namespace ZR.Common.Extension +namespace Infrastructure.Extensions { public static partial class Extensions { diff --git a/ZR.Common/Extension/Extension.Exception.cs b/Infrastructure/Extensions/Extension.Exception.cs similarity index 91% rename from ZR.Common/Extension/Extension.Exception.cs rename to Infrastructure/Extensions/Extension.Exception.cs index f021439..4af781d 100644 --- a/ZR.Common/Extension/Extension.Exception.cs +++ b/Infrastructure/Extensions/Extension.Exception.cs @@ -4,7 +4,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -namespace ZR.Common.Extension +namespace Infrastructure.Extensions { public static partial class Extensions { diff --git a/ZR.Common/Extension/Extension.Linq.cs b/Infrastructure/Extensions/Extension.Linq.cs similarity index 99% rename from ZR.Common/Extension/Extension.Linq.cs rename to Infrastructure/Extensions/Extension.Linq.cs index 45425ec..0c23a71 100644 --- a/ZR.Common/Extension/Extension.Linq.cs +++ b/Infrastructure/Extensions/Extension.Linq.cs @@ -5,7 +5,7 @@ using System.Linq.Expressions; using System.Text; using System.Threading.Tasks; -namespace ZR.Common.Extension +namespace Infrastructure.Extensions { public static class LinqExtensions { diff --git a/ZR.Common/Extension/Extension.Validate.cs b/Infrastructure/Extensions/Extension.Validate.cs similarity index 96% rename from ZR.Common/Extension/Extension.Validate.cs rename to Infrastructure/Extensions/Extension.Validate.cs index 379972b..2d8c083 100644 --- a/ZR.Common/Extension/Extension.Validate.cs +++ b/Infrastructure/Extensions/Extension.Validate.cs @@ -5,7 +5,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -namespace ZR.Common.Extension +namespace Infrastructure.Extensions { public static partial class Extensions { diff --git a/ZR.Common/ComputerHelper.cs b/Infrastructure/Helper/ComputerHelper.cs similarity index 98% rename from ZR.Common/ComputerHelper.cs rename to Infrastructure/Helper/ComputerHelper.cs index 041022f..b26e37b 100644 --- a/ZR.Common/ComputerHelper.cs +++ b/Infrastructure/Helper/ComputerHelper.cs @@ -1,10 +1,10 @@ -using System; +using Infrastructure.Extensions; +using System; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Text; -using ZR.Common.Extension; -namespace ZR.Common +namespace Infrastructure { public class ComputerHelper { diff --git a/ZR.Common/DateTimeHelper.cs b/Infrastructure/Helper/DateTimeHelper.cs similarity index 99% rename from ZR.Common/DateTimeHelper.cs rename to Infrastructure/Helper/DateTimeHelper.cs index 2fb05d7..a50008d 100644 --- a/ZR.Common/DateTimeHelper.cs +++ b/Infrastructure/Helper/DateTimeHelper.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.Text; -namespace ZR.Common +namespace Infrastructure { public class DateTimeHelper { diff --git a/ZR.Common/FileUtil.cs b/Infrastructure/Helper/FileUtil.cs similarity index 98% rename from ZR.Common/FileUtil.cs rename to Infrastructure/Helper/FileUtil.cs index ae0a079..9d3b3aa 100644 --- a/ZR.Common/FileUtil.cs +++ b/Infrastructure/Helper/FileUtil.cs @@ -4,7 +4,7 @@ using System.IO; using System.Security.Cryptography; using System.Text; -namespace ZR.Common +namespace Infrastructure { public class FileUtil { diff --git a/ZR.Common/HttpHelper.cs b/Infrastructure/Helper/HttpHelper.cs similarity index 99% rename from ZR.Common/HttpHelper.cs rename to Infrastructure/Helper/HttpHelper.cs index 403a916..a42482b 100644 --- a/ZR.Common/HttpHelper.cs +++ b/Infrastructure/Helper/HttpHelper.cs @@ -4,7 +4,7 @@ using System.Net.Http; using System.Text; using System.Threading.Tasks; -namespace ZR.Common +namespace Infrastructure { public class HttpHelper { diff --git a/ZR.Common/ShellHelper.cs b/Infrastructure/Helper/ShellHelper.cs similarity index 98% rename from ZR.Common/ShellHelper.cs rename to Infrastructure/Helper/ShellHelper.cs index c5f7ce3..4ca9e78 100644 --- a/ZR.Common/ShellHelper.cs +++ b/Infrastructure/Helper/ShellHelper.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Diagnostics; using System.Text; -namespace ZR.Common +namespace Infrastructure { public class ShellHelper { diff --git a/README.md b/README.md index 3fdc31e..77e1de2 100644 --- a/README.md +++ b/README.md @@ -9,15 +9,18 @@ * 权限认证使用Jwt,支持多终端认证系统。 * 支持加载动态权限菜单,多方式轻松权限控制 -> 如果对您有帮助,点击右上角⭐Star⭐关注 ,感谢支持开源! +``` +如果对您有帮助,您可以点右上角⭐Star⭐ 收藏一下 ,这样作者才有继续免费下去的动力,谢谢!~ +``` ## 🍿在线体验 -体验地址:http://www.izhaorui.cn:8080/ -管理员:admin -密 码:123456 - -**由于是个人项目,资金有限,体验服是低配,请大家爱惜,轻戳,不胜感激!!!** +- 体验地址:http://www.izhaorui.cn:8080/ +- 管理员:admin +- 密 码:123456 +``` +由于是个人项目,资金有限,体验服是低配,请大家爱惜,轻戳,不胜感激!!! +``` ## 🍁前端技术 Vue版前端技术栈 :基于vue、vuex、vue-router 、vue-cli 、axios 和 element-ui,前端采用vscode工具开发 @@ -34,86 +37,93 @@ Vue版前端技术栈 :基于vue、vuex、vue-router 、vue-cli 、axios 和 e ## 🍄快速启动 需要安装:VS2019(最新版)、npm或yarn(最新版) -准备工作:将document文件夹下面的admin.sql脚本导入到数据库中,修改ZR.Admin.WebApi项目里面配置文件中的conn_zrAdmin数据库连接字符串以及DbType选择对应的数据库类型,目前仅支持MySQL、SQL server -启动后台:打开项目根目录的startup.bat即可启动(数据库默认MySQL) -启动前端:打开ZR.Vue文件夹,运行npm install命令,再运行npm run serve启动 -浏览器访问:http://localhost:8887 (默认前端端口为:8887,后台端口为:8888) +- 准备工作:将document文件夹下面的xxx.sql脚本导入到数据库中,修改appsettings.json配置文件里面中的conn_zrAdmin数据库连接字符串以及conn_zrAdmin_Type选择对应的数据库类型,目前仅支持MySQL、SQL server +- 启动后台:打开项目根目录的startup.bat即可启动,或者打开ZRAdmin.sln解决方案,直接运行(F5)即可启动 +- 启动前端:打开ZR.Vue文件夹,运行npm install命令下载安装依赖,再运行npm run serve启动 +- 浏览器访问:http://localhost:8887 (默认前端端口为:8887,后台端口为:8888) ## 🍖内置功能 -1. [X] 用户管理:用户是系统操作者,该功能主要完成系统用户配置。 -2. [X] 部门管理:配置系统组织机构(公司、部门、小组),树结构展现。 -3. [X] 岗位管理:配置系统用户所属担任职务。 -4. [X] 菜单管理:配置系统菜单,操作权限,按钮权限标识等。 -5. [X] 角色管理:角色菜单权限分配。 -6. [X] 字典管理:对系统中经常使用的一些较为固定的数据进行维护。 -7. [ ] 参数管理:对系统动态配置常用参数。 -8. [X] 操作日志:系统正常操作日志记录和查询;系统异常信息日志记录和查询。 -9. [X] 登录日志:系统登录日志记录查询包含登录异常。 -10. [ ] 在线用户:当前系统中活跃用户状态监控。 -11. [X] 系统接口:使用swagger生成相关api接口文档。 -12. [X] 服务监控:监视当前系统CPU、内存、磁盘、堆栈等相关信息。 -13. [X] 在线构建器:拖动表单元素生成相应的VUE代码。 -14. [X] 任务系统:基于Quartz.NET定时任务执行。 -15. [X] 文章管理:可以写文章记录。 -16. [X] 代码生成:可以一键生成前后端代码(.cs、.vue、.js),自定义配置前端展示控件、让开发更快捷高效。 +1. 用户管理:用户是系统操作者,该功能主要完成系统用户配置。 +2. 部门管理:配置系统组织机构(公司、部门、小组),树结构展现。 +3. 岗位管理:配置系统用户所属担任职务。 +4. 菜单管理:配置系统菜单,操作权限,按钮权限标识等。 +5. 角色管理:角色菜单权限分配。 +6. 字典管理:对系统中经常使用的一些较为固定的数据进行维护。 +6. 操作日志:系统正常操作日志记录和查询;系统异常信息日志记录和查询。 +7. 登录日志:系统登录日志记录查询包含登录异常。 +8. 系统接口:使用swagger生成相关api接口文档。 +9. 服务监控:监视当前系统CPU、内存、磁盘、堆栈等相关信息。 +10. 在线构建器:拖动表单元素生成相应的VUE代码。 +11. 任务系统:基于Quartz.NET定时任务执行。 +12. 文章管理:可以写文章记录。 +13. 代码生成:可以一键生成前后端代码(.cs、.vue、.js、sql),自定义配置前端展示控件、让开发更快捷高效。 -## 项目结构 -ZRAdmin解决方案包含: +## 🍻项目结构 -ZR.Service[服务层类库]:提供WebApi接口调用; +``` +- ZR.Service[服务层类库]:提供WebApi接口调用; +- ZR.Repository[仓库层类库]:方便提供有执行存储过程的操作; +- ZR.Model[实体层类库],提供项目中的数据库表、数据传输对象; +- ZR.Admin.WebApi[webapi接口]:为Vue版或其他三方系统提供接口服务。 +- ZR.Vue[前端UI]:vue版本UI层。 +- ZR.Tasks[定时任务类库]:提供项目定时任务实现功能; +- ZR.CodeGenerator[代码生成功能],包含代码生成的模板、方法、代码生成的下载。 +``` +## ⚡ 近期计划 -ZR.Tasks[定时任务类库]:提供项目定时任务实现功能; +- [ ] 参数管理 +- [ ] 在线用户 +- [ ] 文件管理 +- [ ] 邮件发送 +- [ ] 集成微信开发 -ZR.Repository[仓库层类库]:方便提供有执行存储过程的操作; - -ZR.Model[实体层类库],提供项目中的数据库表、数据传输对象; - -ZR.CodeGenerator[代码生成功能],包含代码生成的模板、方法、代码生成的下载。 - -ZR.Admin.WebApi[webapi接口]:为Vue版或其他三方系统提供接口服务。 - -ZR.Vue[前端UI]:vue版本UI层。 - -DataBase是最新数据库备份文件,目前支持MS SQL Server和MySql。 +## 📖 帮助文档 +👉快捷部署到Linux文档: +- [本地md文件](./document/nginx部署文档.md "代码生成") +👉代码生成器使用教程: +- [本地md文件](./document/代码生成器使用.md "代码生成") ## 🍎演示图 - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + + + +
@@ -127,17 +137,17 @@ DataBase是最新数据库备份文件,目前支持MS SQL Server和MySql。 ## 💐 特别鸣谢 - 👉Ruoyi.vue:[Ruoyi](http://www.ruoyi.vip/) -- 👉SqlSugar:https://gitee.com/dotnetchina/SqlSugar +- 👉SqlSugar:[SqlSugar](https://gitee.com/dotnetchina/SqlSugar) -## 🍻参与贡献 -- Fork 本项目 -- 新建 Feat_xxx 分支 -- 提交代码 -- 新建 Pull Request - -## 联系作者 +## 😎联系作者 QQ:599854767 ## 🎀捐赠 如果这个项目对您有所帮助,请扫下方二维码打赏一杯咖啡。 - \ No newline at end of file + + + +## 源码地址 +[Gitee码云中国](https://gitee.com/izory/ZrAdminNetCore) + +[Github](https://github.com/izhaorui/ZrAdmin.NET) \ No newline at end of file diff --git a/ZR.Admin.WebApi/Controllers/System/TasksLogController.cs b/ZR.Admin.WebApi/Controllers/System/TasksLogController.cs index 1a045ec..432aad4 100644 --- a/ZR.Admin.WebApi/Controllers/System/TasksLogController.cs +++ b/ZR.Admin.WebApi/Controllers/System/TasksLogController.cs @@ -9,6 +9,7 @@ using ZR.Admin.WebApi.Filters; using ZR.Common; using Infrastructure.Enums; using ZR.Service.System.IService; +using Infrastructure; namespace ZR.Admin.WebApi.Controllers.System { diff --git a/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/VueTemplate.txt b/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/VueTemplate.txt index d6b050a..432f3fb 100644 --- a/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/VueTemplate.txt +++ b/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/VueTemplate.txt @@ -53,12 +53,12 @@