package entity import "time" const ( ReportSpam = 1 ReportHarassment = 2 ReportFake = 3 ReportOther = 4 ) const ReportDetailMax = 512 // Report is a complaint about TargetID by UserID. type Report struct { ID int64 UserID int64 TargetID int64 Reason int Detail string CreatedAt time.Time } func ValidReportReason(r int) bool { return r >= ReportSpam && r <= ReportOther }