mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-05 18:48:41 +00:00
refactor: update report types and statuses to remove useless values
This commit is contained in:
@@ -25,14 +25,12 @@ export interface ReportListResponse {
|
||||
}
|
||||
|
||||
export const reportTypeLabels = [
|
||||
'Spam',
|
||||
'Abuse',
|
||||
'InappropriateContent',
|
||||
'CopyrightViolation',
|
||||
'IllegalContent',
|
||||
'Fraud',
|
||||
'Other'
|
||||
] as const;
|
||||
|
||||
export const reportStatusLabels = ['Open', 'InProgress', 'Resolved', 'Closed'] as const;
|
||||
export const reportStatusLabels = ['Open', 'Closed'] as const;
|
||||
|
||||
export const reportTargetLabels = ['Paste', 'User'] as const;
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace SharpbinV3.Server.DTOs.Report
|
||||
[MinLength(12), MaxLength(1000)]
|
||||
public string Description { get; set; } = string.Empty;
|
||||
[Required]
|
||||
public string ReportType { get; set; } = string.Empty; // e.g., "Spam", "Abuse", etc.
|
||||
public string ReportType { get; set; } = string.Empty;
|
||||
public string ReportStatus { get; set; } = "Open";
|
||||
public string? VerificationToken { get; set; }
|
||||
}
|
||||
|
||||
@@ -36,16 +36,12 @@ namespace SharpbinV3.Server.Data.Entities
|
||||
public enum ReportStatus
|
||||
{
|
||||
Open,
|
||||
InProgress,
|
||||
Resolved,
|
||||
Closed
|
||||
}
|
||||
public enum ReportType
|
||||
{
|
||||
Spam,
|
||||
Abuse,
|
||||
InappropriateContent,
|
||||
CopyrightViolation,
|
||||
IllegalContent,
|
||||
Fraud,
|
||||
Other
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user