From a2672c94892c36b3558ee635a245c729dc6307b4 Mon Sep 17 00:00:00 2001 From: lejianwen <84855512@qq.com> Date: Wed, 12 Feb 2025 16:56:24 +0800 Subject: [PATCH] style: generate --- generate_api.go | 5 +++++ generate_run.go | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 generate_api.go create mode 100644 generate_run.go diff --git a/generate_api.go b/generate_api.go new file mode 100644 index 0000000..3a201ed --- /dev/null +++ b/generate_api.go @@ -0,0 +1,5 @@ +package main + +//go:generate swag init -g cmd/apimain.go --output docs/api --instanceName api --exclude http/controller/admin +//go:generate swag init -g cmd/apimain.go --output docs/admin --instanceName admin --exclude http/controller/api +//go:generate go run cmd/apimain.go diff --git a/generate_run.go b/generate_run.go new file mode 100644 index 0000000..b2169e1 --- /dev/null +++ b/generate_run.go @@ -0,0 +1,3 @@ +package main + +//go:generate go run cmd/apimain.go