25 lines
688 B
Go
25 lines
688 B
Go
package models
|
|
|
|
import "time"
|
|
|
|
type Upload struct {
|
|
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"`
|
|
Alt string `json:"alt"`
|
|
}
|
|
|
|
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"`
|
|
MIMEType string `json:"mime_type"`
|
|
UploadStarted time.Time `json:"upload_started"`
|
|
}
|