mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
19 lines
381 B
Go
19 lines
381 B
Go
package controller
|
|
|
|
import (
|
|
"Open_IM/pkg/common/db/cache"
|
|
"context"
|
|
)
|
|
|
|
type PushInterface interface {
|
|
DelFcmToken(ctx context.Context, userID string, platformID int) error
|
|
}
|
|
|
|
type PushDataBase struct {
|
|
cache cache.MsgCache
|
|
}
|
|
|
|
func (p *PushDataBase) DelFcmToken(ctx context.Context, userID string, platformID int) error {
|
|
return p.cache.DelFcmToken(ctx, userID, platformID)
|
|
}
|