Files
memegoat/backend/src/reports/dto/create-report.dto.ts
Mathis HERRIOT 975e29dea1
Some checks failed
Backend Tests / test (push) Has been cancelled
Lint / lint (push) Has been cancelled
refactor: format imports, fix indentation, and improve readability across files
Apply consistent import ordering and indentation in frontend and backend files. Ensure better maintainability and adherence to code style standards.
2026-01-14 21:06:38 +01:00

33 lines
492 B
TypeScript

import {
IsEnum,
IsOptional,
IsString,
IsUUID,
MaxLength,
} from "class-validator";
export enum ReportReason {
INAPPROPRIATE = "inappropriate",
SPAM = "spam",
COPYRIGHT = "copyright",
OTHER = "other",
}
export class CreateReportDto {
@IsOptional()
@IsUUID()
contentId?: string;
@IsOptional()
@IsUUID()
tagId?: string;
@IsEnum(ReportReason)
reason!: "inappropriate" | "spam" | "copyright" | "other";
@IsOptional()
@IsString()
@MaxLength(1000)
description?: string;
}