feat: sync durable moderation and appeals
This commit is contained in:
parent
e1a95c7318
commit
9f467f4be7
140 changed files with 13730 additions and 316 deletions
|
|
@ -12,3 +12,16 @@ type PrivacyStore interface {
|
|||
SetPrivacyRules(ctx context.Context, rules domain.PrivacyRules) error
|
||||
ListPrivacyRules(ctx context.Context, ownerUserIDs []int64, keys []domain.PrivacyKey) ([]domain.PrivacyRules, error)
|
||||
}
|
||||
|
||||
// PrivacyUpdateStore atomically commits an absolute privacy rule snapshot,
|
||||
// allocates account pts, appends its durable event, and enqueues online
|
||||
// dispatch. Implementations return the event with its final pts.
|
||||
type PrivacyUpdateStore interface {
|
||||
SetPrivacyRulesWithUpdate(
|
||||
ctx context.Context,
|
||||
rules domain.PrivacyRules,
|
||||
event domain.UpdateEvent,
|
||||
excludeAuthKeyID [8]byte,
|
||||
excludeSessionID int64,
|
||||
) (domain.UpdateEvent, error)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue