You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
292 B
Go

package router
import (
"docDemo/api"
"github.com/gin-gonic/gin"
)
// InitRouter 初始化路由
func InitRouter(app *gin.RouterGroup) {
// 开放接口
openRouter(app.Group("/open"))
}
// 内部开放接口
func openRouter(g *gin.RouterGroup) {
g.GET("/test", api.ScaleApi().Test)
}