Backend Start

This commit is contained in:
2026-09-29 06:23:26 +02:00
parent 6628d8a06c
commit 7bfea738af
7 changed files with 129 additions and 30 deletions
+9 -9
View File
@@ -1,13 +1,13 @@
package models
type Property struct {
Id int `json:"id,omitempty"`
Name string `json:"name"`
Description string `json:"description,omitempty"`
ImageURL string `json:"ImageURL,omitempty"`
//Property_Type *Property_Type `json:"property_type,omitempty"`
Parent_Property *Property `json:"parent_property,omitempty"`
Products_Group *ProductGroup `json:"products_group,omitempty"`
Product *Product `json:"products,omitempty"`
Values []Value `json:"values,omitempty"`
Id int `json:"id,omitempty"`
Name string `json:"name"`
Description string `json:"description,omitempty"`
ImageURL string `json:"ImageURL,omitempty"`
PropertyTypeId int `json:"property_type_id,omitempty"`
ParentPropertyId int `json:"parent_property_id,omitempty"`
ProductGroupId int `json:"product_group_id,omitempty"`
ProductId int `json:"product_id,omitempty"`
Values []Value `json:"values,omitempty"`
}
+6 -6
View File
@@ -1,9 +1,9 @@
package models
type Property_Type struct {
Id int `json:"id,omitempty"`
Name string `json:"name"`
Description string `json:"description,omitempty"`
ImageURL string `json:"ImageURL,omitempty"`
Property Property `json:"property"`
type PropertyType struct {
Id int `json:"id,omitempty"`
Name string `json:"name"`
Description string `json:"description,omitempty"`
ImageURL string `json:"ImageURL,omitempty"`
PropertyId int `json:"property_id,omitempty"`
}
@@ -1,10 +1,9 @@
package models
type PropertyTypeGroup struct {
Id int `json:"id,omitempty"`
Name string `json:"name"`
Description string `json:"description,omitempty"`
ImageURL string `json:"ImageURL,omitempty"`
PropertyTypes []Property_Type `json:"PropertyTypes,omitempty"`
PropertyTypeGroups []PropertyTypeGroup `json:"PropertyTypeGroups,omitempty"`
Id int `json:"id,omitempty"`
Name string `json:"name"`
Description string `json:"description,omitempty"`
ImageURL string `json:"ImageURL,omitempty"`
ParentPropertyTypeGroupId int `json:"parent_property_type_group_id,omitempty"`
}
+4 -3
View File
@@ -1,7 +1,8 @@
package models
type Value struct {
Id int `json:"id,omitempty"`
Value string `json:"value"`
ImageURL string `json:"ImageURL,omitempty"`
Id int `json:"id,omitempty"`
Value string `json:"value"`
ImageURL string `json:"ImageURL,omitempty"`
PropertiesId int `json:"properties_id,omitempty"`
}