package main // struct für das Einbinden von Items, die gekauft wurden type Itemb struct { Id uint64 `json:"id"` Bezeichnung string `json:"bezeichnung"` Kurzbeschreibung string `json:"kurzbeschreibung"` Groesse string `json:"groesse"` Farbe string `json:"farbe"` Type Typ `json:"type"` Material string `json:"material"` Abmessungen Measure `json:"abmessungen"` } // struct für die Fotos, die im Filesystem abgelegt werden sollen type Photos struct { Id uint64 `json:"id"` Pfad string `json:"pfad"` ItembId uint64 `json:"itembid"` ItemextId uint64 `json:"itemextid"` } // struct für die Typen von Kleidung type Typ struct { Id uint `json:"id"` Bezeichnung string `json:"bezeichnung"` } // struct für die Groessenangaben der Kleidungsstücke type Measure struct { Id uint64 `json:"id"` Kurz string `json:"kurz"` Brust float64 `json:"brust"` LaengeT float64 `json:"laenget"` Schulterbreite float64 `json:"schulterbreite"` TaillenumfangT float64 `json:"taillenumfangt"` Hueftumfang float64 `json:"hueftumfang"` Innennaht float64 `json:"innennaht"` LaengeB float64 `json:"laengeb"` TaillenumfangB float64 `json:"taillenumfangb"` } // struct für die Erweiterung des Items für die Benutzung // zusätzliche Felder für Bewertung und Favoriten type ItemExt struct { Id uint64 `json:"id"` Zuhause bool `json:"zuhause"` Draussen bool `json:"draussen"` Genehmigt bool `json:"genehmigt"` Bemerkung string `json:"bemerkung"` Bewertung int `json:"bewertung"` Favorit bool `json:"favorit"` ItemBId uint64 `json:"itembid"` }