感谢你对 BitzOrcas 贡献的兴趣!
项目结构
src/├── BuildingBlocks/ → 共享基础设施(10 个包)├── Platform/ → 业务模块(3 个项目)├── Hosts/ → 可执行宿主(4 个项目)└── Tooling/ → CLI 工具和模板tests/├── BitzOrcas.Unit.Tests├── BitzOrcas.Application.Tests├── BitzOrcas.Integration.Tests├── BitzOrcas.Architecture.Tests└── BitzOrcas.CodeGeneration.Tests代码风格
- 语言:C#,启用可空引用类型
- 命名:公共成员使用 PascalCase,私有字段使用 _camelCase
- 注释:源码中使用中文注释(团队约定)
- AOT 感知:AOT 启用的项目(API Host)中不使用反射
提交规范
- 使用约定式提交:
feat:、fix:、docs:、refactor:、test: - 在适用时关联 Issue 编号
PR 流程
- Fork 仓库
- 创建功能分支
- 进行修改
- 运行
dotnet build和dotnet test - 提交 Pull Request
模块创建清单
添加新模块时:
-
Infrastructure.Persistence.Models中的实体 -
Platform.Application中的服务端口 -
Platform.Application中的 InMemory/Null 默认实现 -
Infrastructure.SqlSugar中的 SqlSugar 仓储 -
SaaS.Contracts中的集成事件 DTO -
Api/Endpoints中的 Minimal API 端点 -
PersistenceRegistration中的 DI 注册 - 模块边界的架构测试