2023-02-22 19:51:14 +08:00
|
|
|
package controller
|
|
|
|
|
|
|
|
|
|
import (
|
2023-02-23 19:15:30 +08:00
|
|
|
"OpenIM/pkg/common/db/cache"
|
2023-02-22 19:51:14 +08:00
|
|
|
"context"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type PushInterface interface {
|
|
|
|
|
DelFcmToken(ctx context.Context, userID string, platformID int) error
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type PushDataBase struct {
|
2023-02-24 11:01:33 +08:00
|
|
|
cache cache.Cache
|
2023-02-22 19:51:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (p *PushDataBase) DelFcmToken(ctx context.Context, userID string, platformID int) error {
|
|
|
|
|
return p.cache.DelFcmToken(ctx, userID, platformID)
|
|
|
|
|
}
|