photoprism/internal/form/album.go
Michael Mayer f70b506f77 Albums: Save sort order and description
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-04-20 10:38:01 +02:00

19 lines
499 B
Go

package form
import "github.com/ulule/deepcopier"
// Album represents an album edit form.
type Album struct {
AlbumName string `json:"AlbumName"`
AlbumDescription string `json:"AlbumDescription"`
AlbumNotes string `json:"AlbumNotes"`
AlbumOrder string `json:"AlbumOrder"`
AlbumTemplate string `json:"AlbumTemplate"`
AlbumFavorite bool `json:"AlbumFavorite"`
}
func NewAlbum(m interface{}) (f Album, err error) {
err = deepcopier.Copy(m).To(&f)
return f, err
}