style: generate

This commit is contained in:
lejianwen
2025-02-12 16:56:24 +08:00
parent a304da6e02
commit a2672c9489
2 changed files with 8 additions and 0 deletions

5
generate_api.go Normal file
View File

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

3
generate_run.go Normal file
View File

@@ -0,0 +1,3 @@
package main
//go:generate go run cmd/apimain.go