自动生成 go sdk
This commit is contained in:
19
README.md
19
README.md
@@ -8,21 +8,28 @@
|
||||
|
||||
```
|
||||
proto/
|
||||
├── README.md
|
||||
├── buf.yaml
|
||||
└── shenxianhe/
|
||||
└── v1/
|
||||
└── account.proto # 账户服务接口定义
|
||||
├── .gitignore # Git忽略配置文件
|
||||
├── Makefile # 构建和发布脚本
|
||||
├── README.md # 项目说明文档
|
||||
├── src/ # 服务定义目录
|
||||
├── buf.gen.yaml # buf生成配置
|
||||
├── buf.yaml # buf项目配置
|
||||
├── script/ # 辅助脚本目录
|
||||
├── templates/ # 模板文件目录
|
||||
└── version.txt # 版本号文件
|
||||
```
|
||||
|
||||
## 使用指南
|
||||
|
||||
### 安装依赖
|
||||
|
||||
本项目使用 [Buf](https://buf.build/) 进行 Protocol Buffers 的管理和构建。请先安装 Buf:
|
||||
本项目使用多个工具进行 Protocol Buffers 的管理、构建和代码生成。请安装以下工具:
|
||||
|
||||
```bash
|
||||
go install github.com/bufbuild/buf/cmd/buf@latest
|
||||
go install github.com/fullstorydev/grpcurl/cmd/grpcurl@latest
|
||||
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
|
||||
go install connectrpc.com/connect/cmd/protoc-gen-connect-go@latest
|
||||
```
|
||||
|
||||
### 检查语法
|
||||
|
||||
Reference in New Issue
Block a user