1 Star 0 Fork 334

牧神 / RuYiAdmin

forked from 庞明军 / RuYiAdmin 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Apache-2.0

RuYiAdmin

介绍

如意Admin是一款前后端分离的、代码能够自动生成的、基于.Net6的、可以跨平台的、低代
码、分布式、企业级RBAC Web后台管理解决方案,支持系统集成与统一认证。前端采用最受欢
迎的开源框架之一:VueElementAdmin,后端采用服务与仓储模式。

支持智慧大屏幕。可一键生成多个业务的视图层、控制层、服务层、仓储层、模型层和DTO业务
模型层代码。集成VForm表单设计器,支持PC、Pad、手机H5页面表单设计与预览。ORM采用
SqlSugar。关系库支持MySql、SqlServer、SQLite、Oracle、PostgreSQL数据库,非
关系库支持Redis、MongoDB、Elasticsearch、Meilisearch。消息总线支持ActiveMQ、
RabbitMQ、Kafka、Redis。企业级配置中心支持携程Apollo。支持统一异常处理,支持
RateLimit限流。支持服务发现、健康检查,支持熔断和降级。支持MiniProfiler接口性能
分析。支持分布式事务解决方案CAP和事件总线EventBus。支持分布式任务的管理与调度。支
持FTP、FXP、FTPS、SFTP。

企业版高端交流群:806522770。复刻之前请留下一颗星星✨,谢谢。

感谢@CyrusZHou(https://gitee.com/CyrusZHou)对项目推进跨平台验证码、支持华为
OpenGauss数据库和系统若干优化做出的贡献。

软件架构

输入图片说明

项目优势

前端
框架	
	使用Vue2,UI采用Element UI,框架使用Vue Element Admin
	对于通用API做了统一性的封装
	对于BasePage界面与通用方法做了较为全面的封装
	支持锁屏、水印
	支持按钮、视图的可见性控制、支持按钮与视图级别的颗粒授权、支持权限下放
后端
框架	
	采用.Net6平台,支持跨平台,支持Linux Docker,支持配置信息热加载、热更新
	采用ASP.NET Core Web API,既可用于构建独立服务,也可以用于支撑前端业务,
支持用户行为的AOP自动监控、支持用户行为的AOP自动鉴权	
	使用Swagger作为Web API的管理工具,为接口与Model做了精细的注释
	使用JwtSecurity验证,防止Web API滥调
	使用AutoFac,实现依赖自动注入,支持log4net、支持控制台日志输出
	支持Quartz作业调度与分布式任务管理与调度
	支持API路由白名单、支持Request Headers验证自由配置
	封装了统一的基类模型、支持个性化导出Excel、支持Excel导入常规校验
	支持相对路径、绝对路径或NAS存储
	支持AutoMapper,实现POCO与DTO自动转化
	使用地表最强ORM——SqlSugar,采用单例模式,支持多种数据库、包括国产数据库
	封装、实现了灵活高效的SQL访问底层,支持SQL热加载、热更新, 支持SQL与代码分离
	支持一主两从的读写分离,支持毫秒时间戳,支持乐观锁并发控制,支持大数据写入、
更新,支持海量数据写入、更新,支持数据的逻辑与物理删除
	支持实时消息、支持禁用用户实时踢出系统
	封装了统一的数据返回格式
	封装了强大的查询条件,支持前端的自定义查询	
	封装了前端UI、后端控制层、服务层与仓储层通用逻辑,前、后端业务代码量少,
开启极简代码时代。
	支持线程池、多任务
	支持服务熔断与降级、支持熔断邮件告警、支持Consul服务治理与健康检查
	支持并发限制、支持RateLimit限流
	是一个完整的低代码RBAC系统管理模板、支持菜单多语、支持业务数据与不同机构分离、
支持自动生成代码、支持在线预览系统帮助
	支持系统集成、支持统一认证
	支持OCR、支持MongoDB、支持全文检索、支持Apollo配置中心
	支持统一异常处理、支持接口性能分析、支持分布式事务Cap和EventBus
	支持高速缓存、支持智慧大屏幕、支持FT、 FXP、 FTPS、SFTP
数据库	
	构建了可视化的ER关系模型,支持MySql、SqlServer、SQLite、Oracle、
PostgreSQL,提供一键执行的数据库初始化脚本,支持自动构建数据库
中间件	
	集成了Redis,支持哨兵模式集群
	集成了ActiveMQ,支持Master Slave和Broker Cluster结合的MQ集群

系统基础功能

输入图片说明

系统设计思想 输入图片说明

安装教程

1.安装Redis。
2.安装ActiveMQ,支持RabbitMQ。
3.安装Mysql数据库,支持一主两从、读写分离。作者使用的是mysql8,如果搭建基于mycat
的读写分离集群,建议使用mysql5.7。
支持自动构建数据库,修改AutomaticallyBuildDatabase的值为true,修改
SqlScriptPath脚本路径,系统启动后将自动构建数据库。
系统同时支持SqlServer(2019)、Oracle(19c)、PostgreSQL(14)数据库。审计日志默认
进入非关系库MongoDB,同时支持Elasticsearch(全文检索)。
4.安装NodeJs。
5.克隆代码。
6.初始化数据库。结构与数据位于webapi/AppData/DataModel、DataStructrue下。如果
使用低版本mysql,可能需要修改数据库初始化脚本。
7.修改配置。修改后端appsettings.json中Redis、ActiveMQ、Mysql、MongoDB数据库连
接串。前端mq配置位于src/constants/active-mq.js。
8.系统前端。前端管理目录位于webapi/wwwroot。推荐使用Visual Studio Code开源软件
编辑。前端的使用可以参看Vue Element Admin官网。
9.系统后端。后端采用Visual Studio 2022开发工具,请使用最新版本。

系统截图

  1. 星空粒子登录页(默认密码:123456) 输入图片说明
  2. 系统首页 输入图片说明
  3. 机构管理 输入图片说明
  4. 用户管理 输入图片说明
  5. 菜单管理 输入图片说明
  6. 角色管理 输入图片说明
  7. 数据字典 输入图片说明
  8. 审计日志 输入图片说明 输入图片说明
  9. 导入配置 输入图片说明 输入图片说明
  10. 在线用户管理 输入图片说明
  11. 在线任务调度 输入图片说明
  12. 系统多语管理 输入图片说明
  13. 服务器监控 输入图片说明
  14. 系统手册 输入图片说明
  15. 表单设计器 输入图片说明
  16. 代码生成器 输入图片说明 输入图片说明
  17. 智慧大屏幕 输入图片说明
  18. swagger 输入图片说明 输入图片说明
  19. 系统集成及统一认证
  • 系统集成 输入图片说明
  • 统一授权 输入图片说明
  • 一对多授权 输入图片说明
  • 统一认证 输入图片说明
  • 统一访问 输入图片说明
  1. 其他
  • 数据导入合法性校验

输入图片说明 输入图片说明

  • 极简代码风格示例
    /// <summary>
    /// 日志业务层接口
    /// </summary>
    public interface ILogService : IBaseService<SysLog>
    {
    }

后话

   我看过很多.Net的开源框架,无论是前端,还是后端或者框架业务的完备性,均没有一个
令我满意的框架。在使用了Vue版本的若依Spring Boot(Java框架)之后,我发现她很全
面、很强大,但是也存在一些问题:那就是前端与后端均没有做统一的抽象与封装。
   架构如果没有层次、没有封装,那就意味着代码量会很大。于是我有了前端、控制器、服
务层、仓储层及通用业务做统一、泛型抽象与封装的打算,以此来最大限度的减少业务层代码
、减轻开发工作量。
   2021年3月,在查阅了很多优秀的开源项目之后,我初步完成了框架的设计思想和技术栈
的选型。2021年4月,我开始了框架底层的研发。随后一鼓作气将其在工作之余完成,同时将
她开源。为了纪念她的诞生,我用我闺女的小名如意来为她命名,称之为“如意Admin”
(项目名称为RuYiAdmin)。截至2022年2月18号,RuYiAdmin开源项目已历经15个大小
版本的迭代,架构趋于稳定、业务趋于成熟。
   “桃李春风一杯酒,江湖夜雨十年灯”。 RuYiAdmin开源项目是我近十年框架业务的总结
与技术的沉淀。我有意将RuYiAdmin开源项目与目前流行的技术结合起来,目的是想将我个人
积累的经验与技术转化为强有力的生产工具,以此来帮助更多的人。
   最后,我以个人最崇高的敬意,衷心地感谢那些无私的开源社区贡献者为全人类IT信息的
进步所做出的伟大贡献,是你们的付出感召着我们、照亮着我们前进的道路!

工作流建议使用优秀开源项目。使用手册及其技术开发文档,请入群索取。
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

简介

好框架,用心造。如意Admin是一款前后端分离、代码能够自动生成、基于.NET6、可跨平台、低代码、分布式、企业级RBAC后台管理解决方案。 展开 收起
C#
Apache-2.0
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
C#
1
https://gitee.com/wingxh/RuYiAdmin.git
git@gitee.com:wingxh/RuYiAdmin.git
wingxh
RuYiAdmin
RuYiAdmin
master

搜索帮助