home.go 378 B

123456789101112131415161718
  1. package v1
  2. import (
  3. "github.com/gin-gonic/gin"
  4. "lttc-go-adm-znaf/pkg/app"
  5. "lttc-go-adm-znaf/pkg/e"
  6. "net/http"
  7. )
  8. // @Summary Hello World
  9. // @Description test
  10. // @Success 200 {string} json "{ "code": 200, "data": {}, "msg": "ok" }"
  11. // @Router /api/v1/index [get]
  12. func Index(c *gin.Context) {
  13. appG := app.Gin{C: c}
  14. appG.Response(http.StatusOK, e.SUCCESS, "Hello World")
  15. }