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
686 B
19 lines
686 B
package cache
|
|
|
|
import (
|
|
"context"
|
|
"github.com/openimsdk/open-im-server/v3/pkg/common/storage/model"
|
|
)
|
|
|
|
type UserCache interface {
|
|
BatchDeleter
|
|
CloneUserCache() UserCache
|
|
GetUserInfo(ctx context.Context, userID string) (userInfo *model.User, err error)
|
|
GetUsersInfo(ctx context.Context, userIDs []string) ([]*model.User, error)
|
|
DelUsersInfo(userIDs ...string) UserCache
|
|
GetUserGlobalRecvMsgOpt(ctx context.Context, userID string) (opt int, err error)
|
|
DelUsersGlobalRecvMsgOpt(userIDs ...string) UserCache
|
|
//GetUserStatus(ctx context.Context, userIDs []string) ([]*user.OnlineStatus, error)
|
|
//SetUserStatus(ctx context.Context, userID string, status, platformID int32) error
|
|
}
|