mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-03-01 00:35:36 +08:00
feat:rpc gs增加gm接口
This commit is contained in:
12
Makefile
12
Makefile
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user