2021-06-02 17:25:04 +02:00
|
|
|
package form
|
|
|
|
|
|
|
|
import "github.com/ulule/deepcopier"
|
|
|
|
|
|
|
|
// Marker represents an image marker edit form.
|
|
|
|
type Marker struct {
|
2021-09-17 14:26:12 +02:00
|
|
|
SubjSrc string `json:"SubjSrc"`
|
2021-08-24 14:27:34 +02:00
|
|
|
MarkerName string `json:"Name"`
|
2021-09-17 14:26:12 +02:00
|
|
|
MarkerReview bool `json:"MarkerReview"`
|
2021-08-16 01:52:02 +02:00
|
|
|
MarkerInvalid bool `json:"Invalid"`
|
2021-06-02 17:25:04 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func NewMarker(m interface{}) (f Marker, err error) {
|
|
|
|
err = deepcopier.Copy(m).To(&f)
|
|
|
|
|
|
|
|
return f, err
|
|
|
|
}
|