生成proto代码

This commit is contained in:
2025-09-15 23:45:15 +08:00
parent 80a35c2f14
commit 1b255090b0
3 changed files with 284 additions and 11 deletions

View File

@@ -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