14 lines
480 B
Go
14 lines
480 B
Go
package store
|
|
|
|
import (
|
|
"context"
|
|
|
|
"telesrv/internal/domain"
|
|
)
|
|
|
|
// PrivacyStore persists account privacy rules by owner user and privacy key.
|
|
type PrivacyStore interface {
|
|
GetPrivacyRules(ctx context.Context, ownerUserID int64, key domain.PrivacyKey) (domain.PrivacyRules, bool, error)
|
|
SetPrivacyRules(ctx context.Context, rules domain.PrivacyRules) error
|
|
ListPrivacyRules(ctx context.Context, ownerUserIDs []int64, keys []domain.PrivacyKey) ([]domain.PrivacyRules, error)
|
|
}
|