Swagger 文档改为按权限分组
- @Tags 由功能维度改为 public/user/admin 权限维度 - main.go 增加全局 tag 声明与权限说明(需放在 @securitydefinitions 之前,否则会被解析器吞掉) - 重新生成 docs/,公开 4 个、需登录 7 个、管理员 11 个接口
This commit is contained in:
11 files changed
+135
-94
No files matched your search
+1
-1
@@ -88,7 +88,7 @@ type HealthResponse struct {
|
||||
|
||||
// @Summary Health check
|
||||
// @Description Check service and database connectivity; returns 503 when the database is unavailable.
|
||||
// @Tags system
|
||||
// @Tags public
|
||||
// @Produce json
|
||||
// @Success 200 {object} api.HealthResponse
|
||||
// @Failure 503 {object} api.HealthResponse
|
||||
|
||||
Reference in New Issue
Block a user