Add HTTP /v1 MVC, TCP send path, groups with server-side member-avatar collage, object-storage upload, and friends/favorites around the architecture-v3 layout. Co-authored-by: Cursor <cursoragent@cursor.com>
27 lines
422 B
Go
27 lines
422 B
Go
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
|
|
}
|