快速、轻量、高效、用心的开发框架,基于 DotNet 和 Vue 构建。
高效快速 返哺开源 用心创作 探索未知
官方文档:曦寒官方文档
在线体验:曦寒接口文档
- DotNet;
-
采用
仓储+服务+接口
的形式封装框架; -
全面异步 async/await 开发;
-
DDD领域驱动**开发;
-
国产数据库 ORM 组件 SqlSugar,使用 CodeFirst 开发模式,支持自由切换多种数据库,MySql/SqlServer/Sqlite/Oracle/Postgresql/达梦/人大金仓;
-
项目启动,支持自动生成种子数据;
-
三种日志记录,异常/请求响应操作/登录等;
-
搭配全套项目:
-
后端:XiHan-Backend;
-
前端:XiHan-Frontend;
-
文档:XiHan-Docs;
-
-
统一集成授权鉴权;
- 支持App全局静态模块;
封装大量全局对象,任何地方可调用;
- 支持全局日志管理器;
使用强大、灵活、高性能的
Serilog.AspNetCore
作为日志组件;支持异步写入,支持注入,支持全局,支持业务分类;
- 支持全局配置管理器;
使用官方灵活的
Microsoft.Extensions.Configuration
配置库;支持绑定配置类链式读取配置;
- 支持全局服务管理器;
使用官方高性能轻量级的
Microsoft.Extensions.DependencyInjection
依赖注入容器;支持批量注入服务(自定义生命周期)、属性和字段注入(类似 Java 的 Autowired);
- 支持全局请求管理器;
使用
Microsoft.AspNetCore.Http
核心库处理HTTP请求和响应;支持动态获取当前 HttpContext 对象;
- 支持系统、环境、应用监控;
- 支持参数验证、规范相应、分页组件;
- 提供 Redis 做缓存处理,默认开启内存缓存;
- 使用 Swagger 做API文档;
- 使用 MiniProfiler 做接口性能分析 ;
- 使用 Mapster 处理对象映射;
- 支持 CORS 跨域;
- 封装 JWT 自定义策略授权;
- 使用 SignalR 双工即时通讯;
- 添加 RateLimiting 做 API 限流;
- 使用 Quartz.Net 做任务调度;
- 支持健康检查;
- 支持 数据库
读写分离
和多库操作; - 支持邮件通知、群机器人通知(钉钉、飞书、企业微信)和自定义Webhook通知;
- 支持文件导入导出、下载模板文件;
- 支持QQ、微信、支付宝、Github、Gitlab、Gitee三方登录;
- 新增 Redis 消息队列;
- 新增 RabbitMQ 消息队列;
- 新增 EventBus 事件总线;
- 新增 ES 搜索配置;
- 可配合 Docker 实现容器化;
- 可配合 Nginx 实现负载均衡;
- 可配合 Ids4 实现认证中心;
- TypeScript;
- Vue;
- Vite;
- Pinia;
- Axios;
- Vue Router;
- Naive UI;
- 数据字典;
- 通知公告;
- 用户管理;
- 机构管理;
- 职位管理;
- 角色管理;
- 菜单管理;
- 文件存储;
- 任务调度、任务日志管理;
- 系统日志、访问日志、操作日志、登录日志管理;
- 服务监控;
- 在线用户;
- 系统配置;
- 系统接口;
- 导入导出;
- 限流控制;
- 三方登录;
- 其他插件;
dotnet /yourpath/XiHan.WebApi.dll --environment=Production --urls=http://*:9708 --ip=127.0.0.1
贡献代码:贡献代码
更新沿程:更新沿程