This commit is contained in:
zyj
2025-08-26 18:53:34 +08:00
commit 96db69b7e4
9 changed files with 329 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-service/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)
}