feat: 接入swagger功能
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user