photoprism/internal/form/marker.go

21 lines
489 B
Go
Raw Normal View History

package form
import "github.com/ulule/deepcopier"
// Marker represents an image marker edit form.
type Marker struct {
RefUID string `json:"RefUID"`
RefSrc string `json:"RefSrc"`
MarkerSrc string `json:"Src"`
MarkerType string `json:"Type"`
MarkerScore int `json:"Score"`
MarkerInvalid bool `json:"Invalid"`
MarkerLabel string `json:"Label"`
}
func NewMarker(m interface{}) (f Marker, err error) {
err = deepcopier.Copy(m).To(&f)
return f, err
}