2026-03-02 09:48:41 +00:00
|
|
|
package models
|
|
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
|
|
|
|
type Upload struct {
|
2026-03-02 10:10:09 +00:00
|
|
|
ID int64 `json:"id"`
|
|
|
|
|
SiteID int64 `json:"site_id"`
|
|
|
|
|
GUID string `json:"guid"`
|
|
|
|
|
FileSize int64 `json:"file_size"`
|
|
|
|
|
MIMEType string `json:"mime_type"`
|
|
|
|
|
Filename string `json:"filename"`
|
|
|
|
|
CreatedAt time.Time `json:"created_at"`
|
2026-03-02 11:26:40 +00:00
|
|
|
Slug string `json:"slug"`
|
2026-03-02 10:10:09 +00:00
|
|
|
Alt string `json:"alt"`
|
2026-03-02 09:48:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type PendingUpload struct {
|
|
|
|
|
GUID string `json:"guid"`
|
|
|
|
|
SiteID int64 `json:"site_id"`
|
|
|
|
|
UserID int64 `json:"user_id"`
|
|
|
|
|
FileSize int64 `json:"file_size"`
|
|
|
|
|
Filename string `json:"filename"`
|
2026-03-04 11:33:39 +00:00
|
|
|
MIMEType string `json:"mime_mime"`
|
2026-03-02 09:48:41 +00:00
|
|
|
UploadStarted time.Time `json:"upload_started"`
|
|
|
|
|
}
|