feat(accounts): add consent settings and organization management
This commit is contained in:
1 parent
24638d46d2
commit
391af7a1ef
83 files changed
+10198
-613
No files matched your search
@@ -692,6 +692,17 @@ func NewPublicationEvent(change PublicationChange, at time.Time) (PrivacyEvent,
|
||||
return completeEvent(location, event)
|
||||
}
|
||||
|
||||
// NewConsentRevokedPublicationEvent records the closure caused by revoking
|
||||
// C2. The event deliberately carries neither published fields nor a consent
|
||||
// identifier; the consent ledger and publication table remain the sources of
|
||||
// the detailed history.
|
||||
func NewConsentRevokedPublicationEvent(userID uuid.UUID, at time.Time) (PrivacyEvent, error) {
|
||||
const location = "domain.NewConsentRevokedPublicationEvent"
|
||||
return completeEvent(location, PrivacyEvent{
|
||||
userID: userID, kind: PrivacyEventPublicationClosed, occurredAt: at,
|
||||
})
|
||||
}
|
||||
|
||||
// NewSearchStatusEvent records a change of the search status.
|
||||
func NewSearchStatusEvent(change SearchStatusChange, at time.Time) (PrivacyEvent, error) {
|
||||
const location = "domain.NewSearchStatusEvent"
|
||||
|
||||
Reference in new issue
Block a user