feat: 添加微服务模板基础架构
- 创建基于 CloudWego Hertz 的 Go 微服务脚手架 - 集成 Nacos 服务注册/发现功能 - 添加 gRPC 客户端支持 - 实现环境变量配置管理 (.env.example) - 添加 HTTP 中间件 (Recovery, AccessLog, CORS) - 配置 Gitea CI/CD 构建部署流程 BREAKING CHANGE: 项目结构调整,从简单的 API 服务升级为完整的微服务架构
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package routes
|
||||
|
||||
import (
|
||||
"apiServer_service/apps"
|
||||
"github.com/cloudwego/hertz/pkg/route"
|
||||
)
|
||||
|
||||
func RegisterIndexRoutes(r *route.RouterGroup) {
|
||||
index := r.Group("/index")
|
||||
{
|
||||
index.GET("/ping", apps.Ping)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user