re organizer project

This commit is contained in:
m
2026-07-12 13:44:15 +02:00
parent 999fbaf7fa
commit 6b8c64bd40
20 changed files with 529 additions and 479 deletions
+18
View File
@@ -0,0 +1,18 @@
package model
type File struct {
ID string `json:"id"`
Name string `json:"name"`
MimeType string `json:"mimeType"`
Size int64 `json:"size"`
StorageKey string `json:"-"`
Checksum string `json:"-"`
OcrText string `json:"ocrText,omitempty"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
}
type UploadResult struct {
ID string `json:"id"`
Name string `json:"name"`
}
+10
View File
@@ -0,0 +1,10 @@
package model
type OcrJob struct {
ID string `json:"id"`
FileID string `json:"fileId"`
Status string `json:"status"`
Result string `json:"result,omitempty"`
CreatedAt string `json:"createdAt"`
CompletedAt *string `json:"completedAt,omitempty"`
}
+6
View File
@@ -0,0 +1,6 @@
package model
type Tag struct {
ID string `json:"id"`
Name string `json:"name"`
}