photoprism/internal/form/marker.go
2021-06-02 17:25:04 +02:00

20 lines
489 B
Go

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
}