feat: 完善Swagger API文档生成功能
This commit is contained in:
@@ -1,5 +1,21 @@
|
||||
// Package main is the main package for the WeKnora server
|
||||
// It contains the main function and the entry point for the server
|
||||
//
|
||||
// @title WeKnora API
|
||||
// @version 1.0
|
||||
// @description WeKnora 知识库管理系统 API 文档
|
||||
// @termsOfService http://swagger.io/terms/
|
||||
//
|
||||
// @contact.name WeKnora Github
|
||||
// @contact.url https://github.com/Tencent/WeKnora
|
||||
//
|
||||
// @host localhost:8080
|
||||
// @BasePath /api/v1
|
||||
//
|
||||
// @securityDefinitions.apikey Bearer
|
||||
// @in header
|
||||
// @name Authorization
|
||||
// @description 输入 Bearer {token} 格式的 JWT 令牌
|
||||
package main
|
||||
|
||||
import (
|
||||
|
||||
Reference in New Issue
Block a user