ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
## 编译成go文件 protoc --go_out=./ *proto 生成 xxxx.pb.go 文件 ## 添加rpc 服务 service 服务名{ rpc 函数名(参数,消息体) returns (返回值,消息) } 例如 message People{ string name = 1; } message Student{ int32 age =2 } service hello { rpc HelloWorld (People) returns (Student) } 修改编译指令 使用grpc方式编译 !!! protoc --go_out=plugins=grpc:./ *proto