生成proto代码
This commit is contained in:
10
Makefile
10
Makefile
@@ -10,8 +10,9 @@ help:
|
||||
@echo " build Build the application"
|
||||
@echo " clean Clean generated files"
|
||||
@echo " test Run all tests"
|
||||
@echo " swag Generate swagger docs"
|
||||
@echo " swag Generate swagger docs"
|
||||
@echo " help Show this help message"
|
||||
@echo " proto Generate protobuf files"
|
||||
|
||||
# 运行应用
|
||||
.PHONY: run
|
||||
@@ -36,4 +37,9 @@ test:
|
||||
# 生成swagger文档
|
||||
.PHONY: swag
|
||||
swag:
|
||||
swag init
|
||||
swag init
|
||||
|
||||
# 生成protobuf文件
|
||||
.PHONY: proto
|
||||
proto:
|
||||
protoc --go_out=internal/app/service/device/proto --go_opt=paths=source_relative --go-grpc_out=internal/app/service/device/proto --go-grpc_opt=paths=source_relative -Iinternal/app/service/device/proto internal/app/service/device/proto/device.proto
|
||||
|
||||
Reference in New Issue
Block a user