Add for leave family

This commit is contained in:
lendry
2026-06-27 00:15:36 +03:00
parent 1a30e7e21c
commit 4b86c64cc4
17 changed files with 323 additions and 31 deletions

View File

@@ -161,3 +161,10 @@ export class LeaveFamilyGroupDto {
newOwnerUserId?: string;
}
export class TransferFamilyOwnershipDto {
@ApiProperty({ description: 'ID пользователя, которому передаётся управление семьёй' })
@IsString({ message: 'ID нового главы семьи должен быть строкой' })
@IsNotEmpty({ message: 'Укажите нового главу семьи' })
newOwnerUserId!: string;
}