mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
10 lines
309 B
Go
10 lines
309 B
Go
package controller
|
|
|
|
import "context"
|
|
|
|
type AuthInterface interface {
|
|
GetTokens(ctx context.Context, userID, platform string) (map[string]int, error)
|
|
DeleteToken(ctx context.Context, userID, platform string) error
|
|
CreateToken(ctx context.Context, userID string, platformID int, ttl int64) (string, error)
|
|
}
|