├── main.go # 启动应用程序的主函数
│
├── internal/ # 业务逻辑和核心应用代码
│ ├── domain/ # 领域层
│ │ ├── database/ # 数据库管理领域
│ │ │ ├── aggregate/ # 聚合根、实体和值对象
│ │ │ ├── service/ # 领域服务
│ │ │ ├── repository/ # 仓储接口定义
│ │ │ └── event/ # 领域事件
│ ├── application/ # 应用层
│ │ ├── database/ # 数据库应用服务
│ ├── adapter/ # 适配器层
│ │ ├── db/ # 数据库适配器实现
│ │ ├── http/ # HTTP API适配器
│ │ ├── grpc/ # gRPC适配器(如果使用)
│ │ └── cache/ # 缓存适配器
│ └── infrastructure/ # 基础设施层
│ ├── config/ # 配置管理
│ ├── logging/ # 日志记录
│ ├── security/ # 安全相关工具
│ └── util/ # 公用工具
├── pkg/ # 可重用的公共包
│ ├── auth/ # 认证和授权
│ ├── validation/ # 输入验证
│ └── ... # 其他通用功能
├── api/ # API文档(如Swagger)
├── scripts/ # 构建、部署等脚本
├── test/ # 测试资源和辅助工具
│ ├── fixtures/ # 测试数据
│ └── mocks/ # 模拟对象
├── Makefile # Makefile用于构建和运行任务
├── go.mod # Go模块文件
└── go.sum # Go依赖项校验和
-
Notifications
You must be signed in to change notification settings - Fork 0
daimao0/easydbtools
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
数据库CMS
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published