mirror of
https://github.com/weloe/token-go.git
synced 2025-10-04 07:06:33 +08:00
feat: add GetLoginCount() to support get login count
This commit is contained in:
@@ -16,6 +16,7 @@ type IEnforcer interface {
|
||||
IsLogin(ctx ctx.Context) (bool, error)
|
||||
IsLoginById(id string) (bool, error)
|
||||
GetLoginId(ctx ctx.Context) (string, error)
|
||||
GetLoginCount(id string) int
|
||||
|
||||
Replaced(id string, device string) error
|
||||
// Banned TODO
|
||||
|
Reference in New Issue
Block a user