1
Fork 0
photoview/api/graphql/models/generated.go

49 lines
1.2 KiB
Go
Raw Normal View History

2020-01-30 14:28:14 +01:00
// Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
2020-02-01 00:08:23 +01:00
package models
2020-01-30 14:28:14 +01:00
2020-02-01 14:52:27 +01:00
type Album struct {
ID string `json:"id"`
Title *string `json:"title"`
Photos []*Photo `json:"photos"`
SubAlbums []*Album `json:"subAlbums"`
ParentAlbum *Album `json:"parentAlbum"`
Owner *User `json:"owner"`
Path *string `json:"path"`
}
2020-01-30 14:28:14 +01:00
type AuthorizeResult struct {
Success bool `json:"success"`
Status string `json:"status"`
Token *string `json:"token"`
}
2020-02-01 14:52:27 +01:00
type Photo struct {
ID string `json:"id"`
Title *string `json:"title"`
// Local filepath for the photo
Path *string `json:"path"`
// URL to display the photo in full resolution
Original *PhotoURL `json:"original"`
// URL to display the photo in a smaller resolution
Thumbnail *PhotoURL `json:"thumbnail"`
// The album that holds the photo
Album *Album `json:"album"`
}
type PhotoURL struct {
// URL for previewing the image
URL *string `json:"url"`
// Width of the image in pixels
Width *int `json:"width"`
// Height of the image in pixels
Height *int `json:"height"`
}
2020-02-01 17:58:45 +01:00
type ScannerResult struct {
Finished bool `json:"finished"`
Success bool `json:"success"`
Progress *float64 `json:"progress"`
Message *string `json:"message"`
}