This commit is contained in:
2025-12-26 22:35:18 +08:00
commit 9cf62f793b
4263 changed files with 728989 additions and 0 deletions

9
scripts/swag.sh Normal file
View File

@@ -0,0 +1,9 @@
# 安装 swag CLI 工具
go install github.com/swaggo/swag/cmd/swag@latest
# 安装 gin-swagger 和相关依赖
go get -u github.com/swaggo/gin-swagger
go get -u github.com/swaggo/files
# 生成 swagger 文档
swag init -g cmd/main/main.go -o ./docs