自动生成 go sdk

This commit is contained in:
sky
2025-08-20 22:37:07 +08:00
parent f6207946ee
commit cfde112832
12 changed files with 353 additions and 10 deletions

View File

@@ -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
```
### 检查语法