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.
24 lines
506 B
24 lines
506 B
1 year ago
|
package controller
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/cache"
|
||
|
)
|
||
|
|
||
|
type PushDatabase interface {
|
||
|
DelFcmToken(ctx context.Context, userID string, platformID int) error
|
||
|
}
|
||
|
|
||
|
type pushDataBase struct {
|
||
|
cache cache.MsgModel
|
||
|
}
|
||
|
|
||
|
func NewPushDatabase(cache cache.MsgModel) PushDatabase {
|
||
|
return &pushDataBase{cache: cache}
|
||
|
}
|
||
|
|
||
|
func (p *pushDataBase) DelFcmToken(ctx context.Context, userID string, platformID int) error {
|
||
|
return p.cache.DelFcmToken(ctx, userID, platformID)
|
||
|
}
|