add generate

This commit is contained in:
2024-11-09 17:26:59 +07:00
parent c982fe6c76
commit db7957b6ca
8 changed files with 571 additions and 3 deletions
+7 -2
View File
@@ -1,7 +1,12 @@
LOCAL_BIN := $(CURDIR)/bin
PATH := $(LOCAL_BIN):$(PATH)
local-go-init: export GOBIN := $(LOCAL_BIN)
local-go-init:
go get github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway
go get github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2
go get google.golang.org/protobuf/cmd/protoc-gen-go
go get google.golang.org/grpc/cmd/protoc-gen-go-grpc
go install \
github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway \
github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2 \
@@ -9,8 +14,8 @@ local-go-init:
google.golang.org/grpc/cmd/protoc-gen-go-grpc
generate:
rm -rf proto
mkdir -p proto
rm -rf proto resources
mkdir -p proto resources
protoc \
-I ./api \
-I ./third_party \