✨ Abuse report system
This commit is contained in:
19
pkg/internal/models/reports.go
Normal file
19
pkg/internal/models/reports.go
Normal file
@ -0,0 +1,19 @@
|
||||
package models
|
||||
|
||||
const (
|
||||
ReportStatusPending = "pending"
|
||||
ReportStatusReviewing = "reviewing"
|
||||
ReportStatusConfirmed = "confirmed"
|
||||
ReportStatusRejected = "rejected"
|
||||
ReportStatusProcessed = "processed"
|
||||
)
|
||||
|
||||
type AbuseReport struct {
|
||||
BaseModel
|
||||
|
||||
Resource string `json:"resource"`
|
||||
Reason string `json:"reason"`
|
||||
Status string `json:"status"`
|
||||
AccountID uint `json:"account_id"`
|
||||
Account Account `json:"account"`
|
||||
}
|
Reference in New Issue
Block a user