refactor(router): extract route registration into helper methods

This commit is contained in:
ryan
2026-06-13 16:27:08 +08:00
parent 922f764241
commit 5698169f20
6 changed files with 253 additions and 228 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ import (
// @Tags health
// @Produce json
// @Success 200 {object} util.ResponseAny{data=string} "服务正常"
// @Router /api/v1/health [get]
// @Router /api/health [get]
func Health(c *gin.Context) {
c.JSON(http.StatusOK, util.OKNil())
}