spark-server/internal/module/friend/entity/report.go
zhr ae9a71034d feat: implement Spark IM V3 modular monolith
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>
2026-09-17 19:52:11 +08:00

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
}