import api from "@/lib/api"; export enum ReportReason { INAPPROPRIATE = "inappropriate", SPAM = "spam", COPYRIGHT = "copyright", OTHER = "other", } export enum ReportStatus { PENDING = "pending", REVIEWED = "reviewed", RESOLVED = "resolved", DISMISSED = "dismissed", } export interface CreateReportPayload { contentId?: string; tagId?: string; reason: ReportReason; description?: string; } export interface Report { uuid: string; reporterId: string; contentId?: string; tagId?: string; reason: ReportReason; description?: string; status: ReportStatus; createdAt: string; updatedAt: string; } export const ReportService = { async create(payload: CreateReportPayload): Promise { await api.post("/reports", payload); }, };