initial commit

This commit is contained in:
m.zare
2026-04-10 18:25:21 +03:30
commit 77ca6c34a3
263 changed files with 34470 additions and 0 deletions

View File

@@ -0,0 +1,51 @@
package asset
import (
"encoding/json"
"time"
"github.com/google/uuid"
)
//go:generate stringer -type=ReportStatus
type ReportStatus int
const (
ReportStatusPending ReportStatus = iota
ReportStatusReviewed
ReportStatusResolved
ReportStatusDismissed
)
type Report struct {
ID uuid.UUID
AssetID uuid.UUID
ReportedBy ReportedBy
ReportedAt time.Time
Reason ReportReason
Status ReportStatus
Notes string
Attachments []Attachment
}
type ReportedBy struct {
ID uuid.UUID
Name string
Description string
RestOfFields json.RawMessage
}
type ReportReason struct {
ID uuid.UUID
Name string
Description string
RestOfFields json.RawMessage
}
type Attachment struct {
ID uuid.UUID
URL string
Type string
}