fusen-auth/execute_protoc.sh
2023-10-23 18:27:42 +08:00

6 lines
300 B
Bash
Executable File

#! /bin/bash
NAME=auth
GO_PB_PATH=./gen/go/service/$NAME
mkdir $GO_PB_PATH -p
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