feat:rpc gs增加gm接口

This commit is contained in:
lu.bai
2022-11-26 17:47:35 +08:00
parent 86a65e6f9b
commit 7cdcb3ec09
17 changed files with 501 additions and 17 deletions

View File

@@ -10,9 +10,19 @@ build:
dev_tool:
# install protoc
go install github.com/golang/protobuf/protoc-gen-go@v1.5.2
go install github.com/byebyebruce/natsrpc/cmd/protoc-gen-natsrpc@develop
test:
go test ./...
.PHONY: gen
# gen 生成代码
gen:
cd protocol/proto && make gen
protoc \
--proto_path=gs/api \
--go_out=paths=source_relative:gs/api \
--natsrpc_out=paths=source_relative:gs/api \
gs/api/*.proto
#cd protocol/proto && make gen