基于.Net 5平台的快速开发框架。
目前系统包含功能有登录,用户管理,应用菜单管理,权限管理,字典管理,退出登录,也方便扩展多租户使用。
通过这些基础功能的实现,分享自己对系统框架设计的理解,对ddd设计的理解,希望对大家学习使用.net core有帮助,少踩一些坑,当然也会存在不足之处,还望指出。
地址: https://back.haohaoplay.com
账号: guest
密码: 123456
名称 | 描述 | 链接 |
---|---|---|
PostgreSQL | 关系型数据库 | https://www.postgresql.org |
Redis | key-value数据库 | https://redis.io |
RabbitMQ | 消息中间件 | https://www.rabbitmq.com |
ELK | 日志收集分析平台 | https://www.elastic.co/cn |
AspectCore | 容器,IOC及AOP的实现 | https://github.com/dotnetcore/AspectCore-Framework |
FreeSql | ORM框架 | https://github.com/dotnetcore/FreeSql |
FreeRedis | redis应用框架 | https://github.com/2881099/FreeRedis |
CAP | 消息中间件应用框架 | https://github.com/dotnetcore/CAP |
IdHelper | 分布式雪花id生成器 | https://github.com/Coldairarrow/IdHelper |
ZooKeeper | 分布式协调服务,用于生成雪花id的workid | http://zookeeper.apache.org |
Serilog | 结构化日志组件,可将日志记录到elk | https://github.com/serilog/serilog |
Mapster | 高性能对象映射组件 | https://github.com/MapsterMapper/Mapster |
FluentValidation | 接口模型验证器 | https://github.com/FluentValidation/FluentValidation |
Swagger | API文档组件 | https://github.com/domaindrivendev/Swashbuckle.AspNetCore |
ImageSharp | 跨平台图像处理框架 | https://github.com/SixLabors/ImageSharp |
名称 | 描述 | 链接 |
---|---|---|
Angular 11 | 前端框架 | https://angular.cn |
NG-ZORRO | UI 组件库 | https://ng.ant.design/docs/introduce/zh |
✔ 仓储层基类封装
✔ 可视化sql语句输出
✔ 公用工具类库封装
✔ 统一接口返回模型及异常处理返回模型
✔ 去除请求所包含字段的首尾空字符串
✔ 工作单元UnitOfWork (Attribute)
✔ 分布式锁 (Attribute)
✔ 防重提交 (Attribute)
✔ 统一全局配置类AppSettings
✔ ICurrentUser记录当前请求的用户信息,通过Scope方式注入使用
✔ Swagger优化枚举中文描述的显示及隐藏忽略属性
✔ JWT身份验证
✔ 位运算实现菜单权限及按钮权限控制管理
更多详见代码......
系统版本
Windows 10、MacOS Big Sur
开发工具
Visual Studio 2019、JetBrains Rider 2020
系统版本
CentOS 7.6
部署工具
Docker、Jenkins、Nginx