feat: 接入swagger功能

This commit is contained in:
TsMask
2025-01-07 17:12:35 +08:00
parent bbc2fe5900
commit 92f6ae8787
11 changed files with 1103 additions and 403 deletions

View File

@@ -20,6 +20,14 @@ type IndexController struct{}
// 根路由
//
// GET /
//
// @Tags common
// @Accept json
// @Produce json
// @Success 200 {object} map[string]any "data"
// @Summary Root Route
// @Description Root Route
// @Router / [get]
func (s *IndexController) Handler(c *gin.Context) {
name := "OMC"
version := libGlobal.Version