feat: add desktop bug report collection

This commit is contained in:
2026-05-31 21:55:29 +08:00
parent 0a9dcec70f
commit e490a267ff
27 changed files with 2938 additions and 3 deletions
+45 -1
View File
@@ -1,6 +1,9 @@
package domain
import "time"
import (
"encoding/json"
"time"
)
const (
StatusActive = "active"
@@ -102,3 +105,44 @@ type DesktopClientRelease struct {
CreatedAt time.Time
UpdatedAt time.Time
}
type DesktopBugReport struct {
ID string
ReportType string
Status string
Severity string
TenantID *int64
TenantName *string
WorkspaceID *int64
WorkspaceName *string
UserID *int64
UserName *string
UserPhone *string
UserEmail *string
DesktopClientID *string
CrashGUID *string
CrashReportID *string
ProcessType *string
ElectronVersion *string
AppVersion *string
ProductName *string
Platform *string
OSArch *string
DeviceName *string
Title string
Description *string
DumpObjectKey *string
DumpFileName *string
DumpSizeBytes *int64
DumpSHA256 *string
FormFields json.RawMessage
RuntimeSnapshot json.RawMessage
AppLogTail *string
ResolutionNote *string
UploaderIP *string
UserAgent *string
OccurredAt time.Time
ResolvedAt *time.Time
CreatedAt time.Time
UpdatedAt time.Time
}