feat: import services and standardize Go 1.26.5
This commit is contained in:
14
apps/social/feed/scripts/proto_gen.sh
Normal file
14
apps/social/feed/scripts/proto_gen.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
# 由于goctl 不能编译多个proto文件,所以先要安装合并工具:
|
||||
# go install git.apinb.com/bsm-tools/proto-merge@v0.0.3
|
||||
|
||||
# 1. 先合并
|
||||
proto-merge ./proto/*.proto ./proto/feeds.proto
|
||||
|
||||
# 2. goctl 生成代码至/gen
|
||||
goctl rpc protoc ./proto/feeds.proto --go_out=./external/pb --go-grpc_out=./external/pb --zrpc_out=./ -m --style go_zero
|
||||
|
||||
# 3. 清理无用文件
|
||||
rm ./proto/feeds.proto
|
||||
mv ./client ./external/
|
||||
rm feeds.go
|
||||
rm ./etc/feeds.yaml
|
||||
Reference in New Issue
Block a user