48 lines
952 B
Go
48 lines
952 B
Go
package photos
|
|
|
|
type Album struct {
|
|
ID string `json:"id"`
|
|
Title string `json:"title"`
|
|
}
|
|
|
|
type Asset struct {
|
|
ID string `json:"id"`
|
|
Filename string `json:"filename"`
|
|
Cloud bool `json:"cloud"`
|
|
}
|
|
|
|
type ExportResult struct {
|
|
Filename string `json:"filename"`
|
|
Size int64 `json:"size"`
|
|
Cloud string `json:"cloud"`
|
|
Error string `json:"error,omitempty"`
|
|
}
|
|
|
|
type CollectionNode struct {
|
|
ID string `json:"id,omitempty"`
|
|
Name string `json:"name"`
|
|
Kind string `json:"kind"`
|
|
Children []CollectionNode `json:"children,omitempty"`
|
|
}
|
|
|
|
type AlbumsResponse struct {
|
|
Albums []Album `json:"albums"`
|
|
}
|
|
|
|
type AssetsResponse struct {
|
|
Assets []Asset `json:"assets"`
|
|
Total int `json:"total"`
|
|
}
|
|
|
|
type TreeResponse struct {
|
|
Collections []CollectionNode `json:"collections"`
|
|
}
|
|
|
|
type ErrorResponse struct {
|
|
Error string `json:"error"`
|
|
}
|
|
|
|
type ExportResultResponse struct {
|
|
ExportResult
|
|
}
|