🚀
高性能
基于 Go 语言和 Gin 框架,提供卓越的性能表现
安装依赖
go mod download配置环境
cp .env.example .env
# 修改 .env 文件中的配置启动服务
go run cmd/server/main.go访问文档
yuanfeng-backend/
├── cmd/server/ # 应用入口
├── internal/
│ ├── api/ # API 层
│ │ ├── handlers/ # 请求处理器
│ │ ├── middleware/ # 中间件
│ │ └── routes/ # 路由配置
│ ├── service/ # 业务逻辑层
│ ├── repository/ # 数据访问层
│ ├── models/ # 数据模型
│ ├── config/ # 配置管理
│ ├── database/ # 数据库管理
│ └── utils/ # 工具函数
├── docs/ # Swagger 文档
├── scripts/ # 脚本文件
└── tests/ # 测试文件