2 Star 2 Fork 0

GikS / MyWeb-Api

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

功能

  • 微服务框架
  • IoC容器
  • 动态服务更新
  • 服务注册
  • 服务发现
  • 配置管理
  • 动态路由
  • 数据统计
  • 分层服务
  • 认证和鉴权
  • 分布式日志跟踪

框架模块

  • 采用仓储+服务 + 业务+接口的形式封装框架;
  • 异步 async/await 开发;
  • 接入国产数据库ORM组件 —— SqlSugar,封装数据库操作;
  • 支持多种数据库自由切换,读写分离,支持多库;
  • 五种日志记录,审计/异常/请求响应/服务操作/Sql记录等;
  • 支持项目事务处理;
  • 设计AOP 切面编程,功能涵盖:日志、缓存、审计、事务 ;
  • 统一集成 IdentityServer4 认证 ;

组件模块

  • 提供 Redis 做缓存处理;
  • 使用 Swagger 做api文档;
  • 使用 Automapper 处理对象映射;
  • 使用 AutoFac 做依赖注入容器,并提供批量服务注入;
  • 支持 数据库读写分离和多库操作;

分层说明

├─MyWeb.Api ---web层
├─MyWeb.Common ---通用系统操作层
├─MyWeb.Extensions ---依赖注入层
├─MyWeb.Model ---实体
├─MyWeb.Repository ---仓储层
└─MyWeb.Services ---服务层

MyWeb.Api ---web层

│ Controllers -->控制器(API路由)
├─Program.cs -->项目启动入口
├─appsettings.json -->生成环境配置
└─appsettings.Development.json -->开发环境配置

MyWeb.Common ---通用系统操作层

│ Attribute -->特性
│ Captcha
	├─Captcha.cs-->验证码实现类(产生随机验证码,绘制验证码图片)
	├─ICaptcha.cs-->验证码接口类
	├─CaptchaResult.cs-->验证码实体类
│ DB-->数据库连接配置
	├─BaseDBConfig.cs-->初始化数据库连接
	├─MainDb.cs
	└─Propagation.cs-->枚举
│ Extensions-->拓展
│ MemoryCacHelper-->帮助类
│ LogHelper
│ MemoryCac
BSD 3-Clause License Copyright (c) 2023, GikS All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

简介

架构模板 展开 收起
C# 等 2 种语言
BSD-3-Clause
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
C#
1
https://gitee.com/giks/my-web.git
git@gitee.com:giks/my-web.git
giks
my-web
MyWeb-Api
release

搜索帮助