Refactor property type repository methods and update references in property types group repository

This commit is contained in:
2026-09-01 22:49:44 +02:00
parent 61c6c11142
commit 4743fff3d4
10 changed files with 114 additions and 18 deletions
@@ -3,7 +3,7 @@ package models
type Product struct {
Id int
Name string
description string
image_url string
Description string
Image_Url string
Properties []Property
}
@@ -4,7 +4,7 @@ type Property struct {
Id int
Name string
Description string
image_url string
Image_Url string
Parent_Property *Property
Values []Value
}
@@ -4,6 +4,6 @@ type Property_Type struct {
Id int
Name string
Description string
image_url string
Image_Url string
Property Property
}
@@ -4,6 +4,7 @@ type Property_Types_Group struct {
Id int
Name string
Description string
Image_Url string
Property_Types []Property_Type
Property_Types_Groups []Property_Types_Group
}
@@ -3,5 +3,5 @@ package models
type Value struct {
Id int
Value string
image_url string
Image_Url string
}