This commit is contained in:
2025-08-17 17:04:27 -04:00
parent f9f23f2d3f
commit 2eed0d9021
72 changed files with 2713 additions and 100 deletions

12
web/models/activity.go Normal file
View File

@@ -0,0 +1,12 @@
package models
import "time"
type Activity struct {
ID string
Author string
Title string
StartTime string
Duration time.Duration
Percentage float64
}

33
web/models/document.go Normal file
View File

@@ -0,0 +1,33 @@
package models
import (
"time"
"reichard.io/antholume/metadata"
)
type Document struct {
ID string
ISBN10 string
ISBN13 string
Title string
Author string
Description string
Percentage float64
WPM int64
Words *int64
TotalTimeRead time.Duration
TimePerPercent time.Duration
HasFile bool
}
type DocumentMetadata struct {
SourceID string
ISBN10 string
ISBN13 string
Title string
Author string
Description string
Source metadata.Source
Error *string
}

10
web/models/progress.go Normal file
View File

@@ -0,0 +1,10 @@
package models
type Progress struct {
ID string
Author string
Title string
DeviceName string
Percentage float64
CreatedAt string
}

11
web/models/search.go Normal file
View File

@@ -0,0 +1,11 @@
package models
type SearchResult struct {
ID string
Title string
Author string
Series string
FileType string
FileSize string
UploadDate string
}