هذا الالتزام موجود في:
2026-04-20 15:12:16 +03:00
التزام 28f7241bcd
172 ملفات معدلة مع 21907 إضافات و0 حذوفات

عرض الملف

@@ -0,0 +1,12 @@
import { ApiProperty } from '@nestjs/swagger';
import { IsIn, IsMongoId } from 'class-validator';
export class ToggleLikeDto {
@ApiProperty()
@IsMongoId()
targetId!: string;
@ApiProperty({ enum: ['post', 'comment'] })
@IsIn(['post', 'comment'])
targetType!: 'post' | 'comment';
}