From 5461bded96f78cb7bdfa53f946de2810bcad19b0 Mon Sep 17 00:00:00 2001 From: Hazel Noack Date: Thu, 3 Jul 2025 11:23:36 +0200 Subject: [PATCH] added data models of diyhrtmarketplace --- backend/diyhrt_fetch.go | 0 backend/diyhrt_models.go | 41 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 backend/diyhrt_fetch.go create mode 100644 backend/diyhrt_models.go diff --git a/backend/diyhrt_fetch.go b/backend/diyhrt_fetch.go new file mode 100644 index 0000000..e69de29 diff --git a/backend/diyhrt_models.go b/backend/diyhrt_models.go new file mode 100644 index 0000000..09ba664 --- /dev/null +++ b/backend/diyhrt_models.go @@ -0,0 +1,41 @@ +package backend + +type ActiveIngredient struct { + Name string + Ester string + DisplayName string +} + +type Product struct { + Id int + Name string + Image string + ActiveIngredient ActiveIngredient +} + +type Store struct { + Id int + Name string + Url string + Description string + ShipsFromCountry string + ShipsToCountry string + ServiceStatus string + ServiceStatusNotes string + PaymentMethods string + CategoryName string +} + +type Listing struct { + Id int + ProductName string + StoreName string + Price string + PriceCurrency string + State string + InStock bool + Url string + PricingPerUnit string + Product Product + Store Store +}