feat: refactor kickout, replaced

This commit is contained in:
weloe
2023-10-22 05:28:00 +08:00
parent bb1845fd3c
commit 272189517b
2 changed files with 20 additions and 8 deletions

View File

@@ -48,8 +48,8 @@ type IEnforcer interface {
GetLoginCounts() (int, error)
GetLoginTokenCounts() (int, error)
Kickout(id string, device string) error
Replaced(id string, device string) error
Kickout(id string, device ...string) error
Replaced(id string, device ...string) error
// Banned banned api
Banned(id string, service string, level int, time int64) error