feat: add GetId and add validation

This commit is contained in:
weloe
2023-09-05 17:00:36 +08:00
parent df39e54be6
commit 71088365cf
2 changed files with 11 additions and 0 deletions

View File

@@ -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