-
Notifications
You must be signed in to change notification settings - Fork 589
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #196 from rocboss/feature/mir
引入go-mir重构paopao-ce的接入层与业务逻辑层
- Loading branch information
Showing
305 changed files
with
15,586 additions
and
4,901 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,6 +68,28 @@ windows-x64: | |
@echo Build paopao-ce [windows-x64] CGO_ENABLED=$(CGO_ENABLED) | ||
@CGO_ENABLED=$(CGO_ENABLED) GOOS=windows GOARCH=amd64 go build -trimpath -tags '$(TAGS)' -ldflags '$(LDFLAGS)' -o $(RELEASE_WINDOWS_AMD64)/$(basename $(TARGET)).exe | ||
|
||
.PHONY: generate | ||
generate: gen-mir gen-grpc | ||
|
||
.PHONY: gen-mir | ||
gen-mir: | ||
@go generate mirc/main.go | ||
@go fmt ./auto/api/... | ||
|
||
.PHONY: gen-grpc | ||
gen-grpc: | ||
@rm -rf auto/rpc | ||
@buf generate proto | ||
@go fmt ./auto/rpc/... | ||
|
||
.PHONY: proto-mod | ||
proto-mod: | ||
@cd proto/ && buf mod update | ||
|
||
.PHONY: proto-lint | ||
proto-lint: | ||
@cd proto/ && buf lint | ||
|
||
clean: | ||
@go clean | ||
@find ./release -type f -exec rm -r {} + | ||
|
@@ -83,7 +105,15 @@ test: | |
@go test ./... | ||
|
||
pre-commit: fmt | ||
go mod tidy | ||
@go mod tidy | ||
|
||
.PHONY: install-protobuf-plugins | ||
install-protobuf-plugins: | ||
@go install github.com/bufbuild/buf/cmd/[email protected] | ||
@go install github.com/bufbuild/buf/cmd/[email protected] | ||
@go install github.com/bufbuild/buf/cmd/[email protected] | ||
@go install google.golang.org/protobuf/cmd/protoc-gen-go@latest | ||
@go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest | ||
|
||
help: | ||
@echo "make: make" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.