feat: add assessment, privacy and support flows

This commit is contained in:
TakuyaYagam1 committed 2026-10-08 08:08:25 +03:00
1 parent ee3738ee73
commit e4f24fa202
339 files changed
+56454 -1126

No files matched your search

@@ -676,6 +676,17 @@ func (ledger *fakeLedger) Current(_ context.Context, subjectID uuid.UUID, purpos
return domain.ConsentRecord{}, outbound.ErrConsentNotFound
}
func (ledger *fakeLedger) LockCurrentForUse(
ctx context.Context,
subjectID uuid.UUID,
purpose domain.ConsentPurpose,
) (domain.ConsentRecord, error) {
if purpose != domain.ConsentPurposeAutoCategorization {
return domain.ConsentRecord{}, domain.ErrInvalidConsent
}
return ledger.Current(ctx, subjectID, purpose)
}
func (ledger *fakeLedger) LockRegistration(_ context.Context, subjectID uuid.UUID, registrationVersion int64) (domain.ConsentRecord, error) {
for index := len(ledger.records) - 1; index >= 0; index-- {
if record := ledger.records[index]; record.SubjectID() == subjectID &&