photoprism/internal/form/folder.go
Michael Mayer 10d5f433aa Albums/Folders: Add category, country, year & month columns #154
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-26 09:02:19 +02:00

28 lines
824 B
Go

package form
import "github.com/ulule/deepcopier"
// Folder represents a file system directory edit form.
type Folder struct {
Path string `json:"Path"`
Root string `json:"Root"`
FolderType string `json:"Type"`
FolderTitle string `json:"Title"`
FolderCategory string `json:"Category"`
FolderDescription string `json:"Description"`
FolderOrder string `json:"Order"`
FolderCountry string `json:"Country"`
FolderYear int `json:"Year"`
FolderMonth int `json:"Month"`
FolderFavorite bool `json:"Favorite"`
FolderPrivate bool `json:"Private"`
FolderIgnore bool `json:"Ignore"`
FolderWatch bool `json:"Watch"`
}
func NewFolder(m interface{}) (f Folder, err error) {
err = deepcopier.Copy(m).To(&f)
return f, err
}