This commit is contained in:
lendry
2026-06-25 08:31:36 +03:00
parent 71b270fcb3
commit 933f7fb9e1
22 changed files with 1871 additions and 620 deletions

View File

@@ -547,6 +547,21 @@ export class AuthGrpcController {
return this.profile.softDeleteProfile(command.userId);
}
@GrpcMethod('ProfileService', 'RequestAccountDeletion')
requestAccountDeletion(command: { userId: string }) {
return this.profile.requestAccountDeletion(command.userId);
}
@GrpcMethod('ProfileService', 'CancelAccountDeletion')
cancelAccountDeletion(command: { userId: string }) {
return this.profile.cancelAccountDeletion(command.userId);
}
@GrpcMethod('ProfileService', 'GetAccountDeletionStatus')
getAccountDeletionStatus(command: { userId: string }) {
return this.profile.getAccountDeletionStatus(command.userId);
}
@GrpcMethod('DocumentsService', 'CreateDocument')
createDocument(command: { userId: string; type: string; number: string; issuedAt?: string; expiresAt?: string; metadataJson?: string }) {
return this.documents.create(command);