Templates TreeView PTG

This commit is contained in:
2026-10-02 11:09:35 +02:00
parent 679a8a0a3e
commit 7ae541aaa9
6 changed files with 76 additions and 17 deletions
@@ -25,7 +25,11 @@ func NewPropertyTypeService(propertyRepo *repositories.PropertyRepository, prope
// Getter functions
func (service *PropertyTypeService) GetPropertyTypeGroupsByParentId(parentId int) ([]models.PropertyTypeGroup, error) {
return service.PropertyTypeGroups_Repository.GetPropertyTypesByGroupId(parentId)
return service.PropertyTypeGroups_Repository.GetPropertyTypeGroupsByParentId(parentId)
}
func (service *PropertyTypeService) GetPropertyTypeGroupByID(id int) (models.PropertyTypeGroup, error) {
return service.PropertyTypeGroups_Repository.GetPropertyTypeGroupByID(id)
}
func (service *PropertyTypeService) GetPropertyTypesByGroupId(id int) ([]models.PropertyType, error) {