mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-11 16:24:11 +01:00
17 lines
350 B
Go
17 lines
350 B
Go
package form
|
|
|
|
import "github.com/ulule/deepcopier"
|
|
|
|
// Face represents a face edit form.
|
|
type Face struct {
|
|
FaceHidden bool `json:"Hidden"`
|
|
SubjUID string `json:"SubjUID"`
|
|
}
|
|
|
|
// NewFace copies values from an arbitrary model into a Face form.
|
|
func NewFace(m interface{}) (f Face, err error) {
|
|
err = deepcopier.Copy(m).To(&f)
|
|
|
|
return f, err
|
|
}
|