2023-01-31 20:33:33 +08:00
|
|
|
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
|
2023-01-31 20:41:45 +08:00
|
|
|
CreateToken(ctx context.Context, userID string, platformID int, ttl int64) (string, error)
|
2023-01-31 20:33:33 +08:00
|
|
|
}
|