feat: add movie search service (#293)

* feat: add movie search service
close #183

* chore: update display name

* chore: code review fix

* feat: avoid panic when fields would be null or missed

* chore: make it more readable

* fix: correct format
This commit is contained in:
zhaoyang
2021-12-07 19:27:10 +08:00
committed by GitHub
parent ea15a0f0fe
commit e53c3bb52c
15 changed files with 911 additions and 1 deletions

28
movie/Makefile Normal file
View File

@@ -0,0 +1,28 @@
GOPATH:=$(shell go env GOPATH)
.PHONY: init
init:
go get -u github.com/golang/protobuf/proto
go get -u github.com/golang/protobuf/protoc-gen-go
go get github.com/micro/micro/v3/cmd/protoc-gen-micro
go get github.com/micro/micro/v3/cmd/protoc-gen-openapi
.PHONY: api
api:
protoc --openapi_out=. --proto_path=. proto/movie.proto
.PHONY: proto
proto:
protoc --proto_path=. --micro_out=. --go_out=:. proto/movie.proto
.PHONY: build
build:
go build -o movie *.go
.PHONY: test
test:
go test -v ./... -cover
.PHONY: docker
docker:
docker build . -t movie:latest