checkAuth.go 189 B

1234567891011121314
  1. package middleware
  2. import (
  3. "github.com/gin-gonic/gin"
  4. )
  5. func CheckAuth() gin.HandlerFunc {
  6. return func(context *gin.Context) {
  7. // TODO...
  8. // 前置中间件
  9. context.Next()
  10. }
  11. }