From e45a8b77e065e2274691118d7630a6eb2eb4477a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Albert=20Esp=C3=ADn?= Date: Sun, 2 Mar 2025 11:58:37 +0100 Subject: [PATCH] first commit --- README.md | 0 go.mod | 3 +++ pkg/types/mercadona/categories.go | 18 ++++++++++++++++++ 3 files changed, 21 insertions(+) create mode 100644 README.md create mode 100644 go.mod create mode 100644 pkg/types/mercadona/categories.go diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..02afd6d --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module git.espin.casa/albert/mercadona + +go 1.24.0 diff --git a/pkg/types/mercadona/categories.go b/pkg/types/mercadona/categories.go new file mode 100644 index 0000000..dcb050c --- /dev/null +++ b/pkg/types/mercadona/categories.go @@ -0,0 +1,18 @@ +package mercadona + +type Category struct { + ID int `json:"id"` + Name string `json:"name"` + Order int `json:"order"` + Layout int `json:"layout"` + Published bool `json:"published"` + Categories []struct { + ID int `json:"id"` + Name string `json:"name"` + Order int `json:"order"` + Layout int `json:"layout"` + Published bool `json:"published"` + IsExtended bool `json:"is_extended"` + } `json:"categories"` + IsExtended bool `json:"is_extended"` +}