mirror of
https://github.com/weloe/token-go.git
synced 2025-10-04 07:06:33 +08:00
feat: add GetId and add validation
This commit is contained in:
@@ -41,6 +41,7 @@ type IEnforcer interface {
|
||||
|
||||
GetLoginId(ctx ctx.Context) (string, error)
|
||||
GetLoginIdByToken(token string) (string, error)
|
||||
GetId(ctx ctx.Context) string
|
||||
GetIdByToken(token string) string
|
||||
GetLoginCount(id string) int
|
||||
|
||||
|
Reference in New Issue
Block a user