package router import ( "applet/app/customer/mw" "github.com/gin-gonic/gin" ) func CustomerInit(r *gin.RouterGroup) { rTest(r.Group("/test")) r.Use(mw.Auth) //检测登录状态 } func rTest(r *gin.RouterGroup) { }