People: Add autocomplete for selecting a person #22

This commit is contained in:
Michael Mayer
2021-09-03 16:14:09 +02:00
parent 68f21146ba
commit c520cb4ee4
35 changed files with 992 additions and 682 deletions

View File

@@ -19,40 +19,42 @@ func (m *Marker) MarshalJSON() ([]byte, error) {
return json.Marshal(&struct {
UID string
FileUID string
FileHash string
FileArea string
Type string
Src string
Name string
Invalid bool `json:",omitempty"`
X float32 `json:",omitempty"`
Y float32 `json:",omitempty"`
Invalid bool
Review bool
FaceID string
SubjectUID string
SubjectSrc string
X float32
Y float32
W float32 `json:",omitempty"`
H float32 `json:",omitempty"`
Size int `json:",omitempty"`
Score int `json:",omitempty"`
Review bool `json:",omitempty"`
CropID string `json:",omitempty"`
FaceID string `json:",omitempty"`
SubjectUID string `json:",omitempty"`
SubjectSrc string `json:",omitempty"`
CreatedAt time.Time
}{
UID: m.MarkerUID,
FileUID: m.FileUID,
FileHash: m.FileHash,
FileArea: m.FileArea,
Type: m.MarkerType,
Src: m.MarkerSrc,
Name: name,
Invalid: m.MarkerInvalid,
Review: m.Review,
FaceID: m.FaceID,
SubjectUID: m.SubjectUID,
SubjectSrc: m.SubjectSrc,
X: m.X,
Y: m.Y,
W: m.W,
H: m.H,
Size: m.Size,
Score: m.Score,
Review: m.Review,
CropID: m.CropID,
FaceID: m.FaceID,
SubjectUID: m.SubjectUID,
SubjectSrc: m.SubjectSrc,
CreatedAt: m.CreatedAt,
})
}