mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-05 05:12:45 +08:00
* refactor: db refactor and cache key add. * refactor: db refactor and cache key add. * refactor: go version update. * refactor: file name change.
13 lines
456 B
Go
13 lines
456 B
Go
package cache
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
type TokenModel interface {
|
|
AddTokenFlag(ctx context.Context, userID string, platformID int, token string, flag int) error
|
|
GetTokensWithoutError(ctx context.Context, userID string, platformID int) (map[string]int, error)
|
|
SetTokenMapByUidPid(ctx context.Context, userID string, platformID int, m map[string]int) error
|
|
DeleteTokenByUidPid(ctx context.Context, userID string, platformID int, fields []string) error
|
|
}
|