refactor: add LogoutByToken() and SetJwtSecretKey()

This commit is contained in:
weloe
2023-05-19 22:40:22 +08:00
parent c50b10f5f6
commit dc9f137435
4 changed files with 12 additions and 3 deletions

View File

@@ -14,6 +14,7 @@ type IEnforcer interface {
Login(id string, ctx ctx.Context) (string, error)
LoginByModel(id string, loginModel *model.Login, ctx ctx.Context) (string, error)
Logout(ctx ctx.Context) error
LogoutByToken(token string) error
IsLogin(ctx ctx.Context) (bool, error)
IsLoginById(id string) (bool, error)
GetLoginId(ctx ctx.Context) (string, error)