feat: import services and standardize Go 1.26.5
This commit is contained in:
10
apps/base/feedback/scripts/proto_gen.sh
Normal file
10
apps/base/feedback/scripts/proto_gen.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
# 由于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/
|
||||
Reference in New Issue
Block a user