2021-09-18 15:32:39 +02:00
|
|
|
package form
|
|
|
|
|
|
|
|
import "github.com/ulule/deepcopier"
|
|
|
|
|
|
|
|
// Face represents a face edit form.
|
|
|
|
type Face struct {
|
2021-09-18 20:41:30 +02:00
|
|
|
FaceHidden bool `json:"Hidden"`
|
|
|
|
SubjUID string `json:"SubjUID"`
|
2021-09-18 15:32:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func NewFace(m interface{}) (f Face, err error) {
|
|
|
|
err = deepcopier.Copy(m).To(&f)
|
|
|
|
|
|
|
|
return f, err
|
|
|
|
}
|