feat 拆出qgdzs
This commit is contained in:
25
README.md
25
README.md
@@ -168,4 +168,27 @@ 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` 定义路由
|
||||||
Reference in New Issue
Block a user