feat: add device manager api

This commit is contained in:
weloe
2023-11-06 00:54:30 +08:00
parent c7d67424d0
commit 27404a24dd
4 changed files with 52 additions and 0 deletions

View File

@@ -45,6 +45,10 @@ type IEnforcer interface {
GetIdByToken(token string) string
GetLoginCount(id string, device ...string) int
// device manager api
GetLoginDevices(id string) []string
GetDeviceByToken(token string) string
// refresh api
GetRefreshToken(tokenValue string) string
RefreshToken(refreshToken string, refreshModel ...*model.Refresh) (*model.RefreshRes, error)