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

@@ -87,6 +87,14 @@ type OrganizationRepository interface {
// suspended, removed, or left.
GetForMember(ctx context.Context, organizationID, userID uuid.UUID) (domain.Organization, domain.Membership, error)
// LockActiveMembership locks the organization row first, then the active
// membership row, through the surrounding transaction. Writers that act on
// owner access use it to serialize against membership revocation and keep
// the same organization-then-membership lock order as profile updates. It
// returns ErrOrganizationNotFound for an unknown organization or an
// account without an active membership.
LockActiveMembership(ctx context.Context, organizationID, userID uuid.UUID) (domain.Membership, error)
// ListForUser returns one page of the organizations where the account has
// an active membership, newest membership first.
ListForUser(ctx context.Context, query OrganizationListQuery) (OrganizationPage, error)