commit e45a8b77e065e2274691118d7630a6eb2eb4477a Author: Albert EspĂ­n Date: Sun Mar 2 11:58:37 2025 +0100 first commit 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"` +}