mv src/proto to pkg/proto

This commit is contained in:
xmcy0011
2021-10-11 22:00:38 +08:00
parent 585715adbf
commit bc94d4e0b3
89 changed files with 90 additions and 90 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/usr/bin/env bash
source ./proto_dir.cfg
for ((i = 0; i < ${#all_proto[*]}; i++)); do
proto=${all_proto[$i]}
protoc --go_out=plugins=grpc:. $proto
s=`echo $proto | sed 's/ //g'`
v=${s//proto/pb.go}
protoc-go-inject-tag -input=./$v
echo "protoc --go_out=plugins=grpc:." $proto
done
echo "proto file generate success..."