liuxiaolong
2020-06-05 7c811247ecf143e08c576986a884bedadc57dd66
middlewares/auth/auth.go
@@ -16,8 +16,9 @@
type Auth interface {
   Check(c *gin.Context)bool
   User(c *gin.Context)map[string]interface{}
   Login(http *http.Request,w http.ResponseWriter,user map[string]interface{})interface{}
   Login(http *http.Request,w http.ResponseWriter,user map[string]interface{}) (bool, string, string)
   Logout(http *http.Request,w http.ResponseWriter) bool
   RefreshToken(tokenStr string) (bool, string, string)
}
func GenerateAuthDriver() *Auth {