generate thumbnails

This commit is contained in:
m
2026-07-16 07:35:08 +02:00
parent 79c743722d
commit 10c07d2946
16 changed files with 608 additions and 28 deletions
+4 -3
View File
@@ -22,7 +22,8 @@ type File struct {
}
type UploadResult struct {
ID string `json:"id"`
Name string `json:"name"`
Path string `json:"path"`
ID string `json:"id"`
Name string `json:"name"`
Path string `json:"path"`
MimeType string `json:"mimeType"`
}
+13
View File
@@ -0,0 +1,13 @@
package model
type Thumbnail struct {
ID string `json:"id"`
FileID string `json:"fileId"`
PageNumber int `json:"pageNumber"`
ResolutionLabel string `json:"resolutionLabel"`
Width int `json:"width"`
Height int `json:"height"`
StorageKey string `json:"-"`
MimeType string `json:"mimeType"`
CreatedAt string `json:"createdAt"`
}