You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
826 B
19 lines
826 B
6 months ago
|
package cache
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
)
|
||
|
|
||
|
type ThirdCache interface {
|
||
|
SetFcmToken(ctx context.Context, account string, platformID int, fcmToken string, expireTime int64) (err error)
|
||
|
GetFcmToken(ctx context.Context, account string, platformID int) (string, error)
|
||
|
DelFcmToken(ctx context.Context, account string, platformID int) error
|
||
|
IncrUserBadgeUnreadCountSum(ctx context.Context, userID string) (int, error)
|
||
|
SetUserBadgeUnreadCountSum(ctx context.Context, userID string, value int) error
|
||
|
GetUserBadgeUnreadCountSum(ctx context.Context, userID string) (int, error)
|
||
|
SetGetuiToken(ctx context.Context, token string, expireTime int64) error
|
||
|
GetGetuiToken(ctx context.Context) (string, error)
|
||
|
SetGetuiTaskID(ctx context.Context, taskID string, expireTime int64) error
|
||
|
GetGetuiTaskID(ctx context.Context) (string, error)
|
||
|
}
|