This commit is contained in:
zyj
2025-08-26 15:10:10 +08:00
commit 50f5c0f13b
8 changed files with 726 additions and 0 deletions

9
router/index.go Normal file
View File

@@ -0,0 +1,9 @@
package router
import "github.com/gin-gonic/gin"
var routerTest Test
func Init(app *gin.Engine) {
routerTest.Init(app)
}

16
router/test.go Normal file
View File

@@ -0,0 +1,16 @@
package router
import (
"go-desk/api"
"github.com/gin-gonic/gin"
)
type Test struct{}
var apiTest api.Test
func (*Test) Init(app *gin.Engine) {
test := app.Group("/test")
test.GET("/status", apiTest.Status)
}