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.
Open-IM-Server/pkg/common/storage/database/group_mute.go

18 lines
683 B

package database
import (
"context"
"github.com/openimsdk/open-im-server/v3/pkg/common/storage/model"
)
// GroupMute persists per-user group notification mute settings.
type GroupMute interface {
Upsert(ctx context.Context, mute *model.GroupMute) error
Delete(ctx context.Context, ownerUserID, groupID string) error
// ListActiveMutedUserIDs returns which of candidateUserIDs currently have an active mute on this group.
ListActiveMutedUserIDs(ctx context.Context, groupID string, candidateUserIDs []string) ([]string, error)
// Get returns one document by owner + group; nil if not found.
Get(ctx context.Context, ownerUserID, groupID string) (*model.GroupMute, error)
}