photoprism/internal/form/album.go
Michael Mayer 03ec4b586d Initial commit for folders and moments #154 #260 #331
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-23 20:58:58 +02:00

24 lines
680 B
Go

package form
import "github.com/ulule/deepcopier"
// Album represents an album edit form.
type Album struct {
CoverUID string `json:"CoverUID"`
ParentUID string `json:"ParentUID"`
FolderUID string `json:"FolderUID"`
AlbumType string `json:"Type"`
AlbumName string `json:"Name"`
AlbumDescription string `json:"Description"`
AlbumNotes string `json:"Notes"`
AlbumFilter string `json:"Filter"`
AlbumOrder string `json:"Order"`
AlbumTemplate string `json:"Template"`
AlbumFavorite bool `json:"Favorite"`
}
func NewAlbum(m interface{}) (f Album, err error) {
err = deepcopier.Copy(m).To(&f)
return f, err
}