wip
This commit is contained in:
12
web/models/activity.go
Normal file
12
web/models/activity.go
Normal 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
33
web/models/document.go
Normal 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
10
web/models/progress.go
Normal 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
11
web/models/search.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package models
|
||||
|
||||
type SearchResult struct {
|
||||
ID string
|
||||
Title string
|
||||
Author string
|
||||
Series string
|
||||
FileType string
|
||||
FileSize string
|
||||
UploadDate string
|
||||
}
|
||||
Reference in New Issue
Block a user