photoprism/internal/form/label.go
Michael Mayer 4efa383c57 API: Proof-of-concept for form handling
We don't want to directly write to models so that only selected fields can be changed and values can be validated for security reasons.

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-02-02 03:36:00 +01:00

9 lines
218 B
Go

package form
// Label represents a label edit form.
type Label struct {
LabelName string `json:"LabelName"`
LabelUncertainty int `json:"LabelUncertainty"`
LabelPriority int `json:"LabelPriority"`
}