fix: gen scripts

This commit is contained in:
Nex 2020-09-22 16:27:50 +08:00
parent bd3165747c
commit 0845a71aba
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ for %%A in (%*) do (
set out=%gen%\go set out=%gen%\go
if not exist !out! mkdir !out! if not exist !out! mkdir !out!
echo Generating Go code echo Generating Go code
!exec! --go-grpc_out=!out! --govalidators_out=!out! %pbs% !exec! --go_out=!out! --go-grpc_out=!out! --govalidators_out=!out! %pbs%
) )
if "%%A"=="gohttp" ( if "%%A"=="gohttp" (
set plugin=protoc-gen-grpc-gateway set plugin=protoc-gen-grpc-gateway

View File

@ -46,7 +46,7 @@ do
mkdir -p $out mkdir -p $out
fi fi
echo "Generating Go code" echo "Generating Go code"
$exec --go-grpc_out=$out --govalidators_out=$out $pb_files $async_tag $exec --go_out=$out --go-grpc_out=$out --govalidators_out=$out $pb_files $async_tag
fi fi
if [ $aug == "gohttp" ]; then if [ $aug == "gohttp" ]; then
plugin=protoc-gen-grpc-gateway plugin=protoc-gen-grpc-gateway