package middleware import ( "github.com/gin-gonic/gin" ) func CheckAuth() gin.HandlerFunc { return func(context *gin.Context) { // TODO... // 前置中间件 context.Next() } }