feat 拆出qgdzs

This commit is contained in:
2026-01-12 16:53:40 +08:00
parent b1e7d33940
commit 8e4dc3e339

View File

@@ -169,3 +169,26 @@ user-service/
> 🌟 **好的微服务架构不是设计出来的,而是在约束和实践中演化出来的。** > 🌟 **好的微服务架构不是设计出来的,而是在约束和实践中演化出来的。**
--- ---
# 增加服务器步骤
代码
1. go module 命名:`git.hlsq.asia/mmorpg/service-${服务名}`
2. `deploy、config` 修改
common
1.`discover\common\define.go` 定义服务发现
2.`net\grpc\service` 实现客户端发现
public
1.`Proto\RpcServer\sources` 定义gRPC服务
db
1. 创建独立db命名为`${服务名}_db`
quickly
1. `MySQL Model` 增加数据库配置
2. `更新Common` 增加项目配置
gateway
1. 在 `internal\net\http_gateway\router.go` 定义路由