mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +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 = [
|
export const reportTypeLabels = [
|
||||||
'Spam',
|
|
||||||
'Abuse',
|
|
||||||
'InappropriateContent',
|
|
||||||
'CopyrightViolation',
|
'CopyrightViolation',
|
||||||
|
'IllegalContent',
|
||||||
'Fraud',
|
'Fraud',
|
||||||
'Other'
|
'Other'
|
||||||
] as const;
|
] 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;
|
export const reportTargetLabels = ['Paste', 'User'] as const;
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ namespace SharpbinV3.Server.DTOs.Report
|
|||||||
[MinLength(12), MaxLength(1000)]
|
[MinLength(12), MaxLength(1000)]
|
||||||
public string Description { get; set; } = string.Empty;
|
public string Description { get; set; } = string.Empty;
|
||||||
[Required]
|
[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 ReportStatus { get; set; } = "Open";
|
||||||
public string? VerificationToken { get; set; }
|
public string? VerificationToken { get; set; }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,16 +36,12 @@ namespace SharpbinV3.Server.Data.Entities
|
|||||||
public enum ReportStatus
|
public enum ReportStatus
|
||||||
{
|
{
|
||||||
Open,
|
Open,
|
||||||
InProgress,
|
|
||||||
Resolved,
|
|
||||||
Closed
|
Closed
|
||||||
}
|
}
|
||||||
public enum ReportType
|
public enum ReportType
|
||||||
{
|
{
|
||||||
Spam,
|
|
||||||
Abuse,
|
|
||||||
InappropriateContent,
|
|
||||||
CopyrightViolation,
|
CopyrightViolation,
|
||||||
|
IllegalContent,
|
||||||
Fraud,
|
Fraud,
|
||||||
Other
|
Other
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user