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"` TypId uint `json:"typid"` Material string `json:"material"` AbmessungenId uint64 `json:"abmessungenid"` } // 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"` Brust float32 `json:"brust"` LaengeT float32 `json:"laenget"` Schulterbreite float32 `json:"schulterbreite"` TaillenumfangT float32 `json:"taillenumfangt"` Hueftumfang float32 `json:"hueftumfang"` Innennaht float32 `json:"innennaht"` LaengeB float32 `json:"laengeb"` TaillenumfangB float32 `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"` }