fusen-auth/execute_protoc.sh

13 lines
591 B
Bash
Raw Normal View History

2023-10-23 10:27:42 +00:00
#! /bin/bash
NAME=auth
GO_PB_PATH=./gen/go/service/$NAME
mkdir $GO_PB_PATH -p
2023-10-23 10:36:55 +00:00
protoc -I ./proto --go_out $GO_PB_PATH --go_opt paths=source_relative --go-grpc_out $GO_PB_PATH --go-grpc_opt paths=source_relative --grpc-gateway_out $GO_PB_PATH --grpc-gateway_opt paths=source_relative $NAME.proto
NAME=basic
GO_PB_PATH=./gen/go/service/$NAME
mkdir $GO_PB_PATH -p
2023-10-23 10:27:42 +00:00
protoc -I ./proto --go_out $GO_PB_PATH --go_opt paths=source_relative --go-grpc_out $GO_PB_PATH --go-grpc_opt paths=source_relative --grpc-gateway_out $GO_PB_PATH --grpc-gateway_opt paths=source_relative $NAME.proto