Files
full/apps/base/feedback/scripts/proto_gen.sh

11 lines
545 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 由于goctl 不能编译多个proto文件所以先要安装合并工具
# go install git.apinb.com/bsm-tools/proto-merge@v0.0.3
# 1. 先合并
proto-merge ./proto/*.proto ./proto/feedback.proto
# 2. goctl 生成代码至/gen
goctl rpc protoc ./proto/feedback.proto --go_out=./pb --go-grpc_out=./pb --zrpc_out=./gen/ -m --style go_zero
#protoc --go_out=./pb/ --go_opt=paths=source_relative --go-grpc_out=./pb/ --go-grpc_opt=require_unimplemented_servers=false --go-grpc_opt=paths=source_relative ./proto/*.proto --proto_path=./proto/