2024-03-01 15:19:53 +00:00
|
|
|
package gallery
|
|
|
|
|
|
|
|
type GalleryOp struct {
|
|
|
|
Id string
|
|
|
|
GalleryName string
|
2024-04-11 22:49:23 +00:00
|
|
|
ConfigURL string
|
2024-04-28 21:42:46 +00:00
|
|
|
Delete bool
|
2024-04-23 07:22:58 +00:00
|
|
|
|
|
|
|
Req GalleryModel
|
|
|
|
Galleries []Gallery
|
2024-03-01 15:19:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type GalleryOpStatus struct {
|
2024-04-28 21:42:46 +00:00
|
|
|
Deletion bool `json:"deletion"` // Deletion is true if the operation is a deletion
|
2024-03-01 15:19:53 +00:00
|
|
|
FileName string `json:"file_name"`
|
|
|
|
Error error `json:"error"`
|
|
|
|
Processed bool `json:"processed"`
|
|
|
|
Message string `json:"message"`
|
|
|
|
Progress float64 `json:"progress"`
|
|
|
|
TotalFileSize string `json:"file_size"`
|
|
|
|
DownloadedFileSize string `json:"downloaded_size"`
|
|
|
|
}
|