app-cloudep-portal-api-gateway/Makefile

20 lines
623 B
Makefile
Raw Permalink Normal View History

2024-08-25 07:08:49 +00:00
#goctl api plugin -plugin goctl-swagger="swagger -filename gateway.json -host dev-api.30cm.net" -api ./generate/api/gateway.api -dir .
2024-08-26 06:36:58 +00:00
#goctl api go -api ./generate/api/gateway.api -dir . -style go_zero
2024-08-27 07:40:00 +00:00
GOFMT ?= gofmt
2024-08-26 06:36:58 +00:00
GOFILES := $(shell find . -name "*.go")
.PHONY: fmt
fmt: # 格式優化
2024-08-27 07:40:00 +00:00
$(GOFMT) -s -w $(GOFILES)
goimports -w ./
.PHONY: gen-doc
gen-doc: # 格式優化
goctl api plugin -plugin goctl-swagger="swagger -filename gateway.json -host dev-api.30cm.net" -api ./generate/api/gateway.api -dir .
.PHONY: gen-api
gen-api: # 格式優化
goctl api go -api ./generate/api/gateway.api -dir . -style go_zero