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 {