4 Commits
v1.1.1 ... main

Author SHA1 Message Date
0daab3d8bf Update to 1.1.5 2025-09-16 00:18:12 +02:00
923a7de1ff Added exclude field 2025-09-15 22:15:22 +02:00
d4170f326a Set dimensions to string 2025-04-13 22:12:42 +00:00
bb357b4b57 Update entity/product_attribute.go 2025-04-13 21:26:37 +00:00
4 changed files with 13 additions and 10 deletions

View File

@@ -1,9 +1,9 @@
package entity package entity
type ProductDimension struct { type ProductDimension struct {
Length float64 `json:"length"` Length string `json:"length"`
Width float64 `json:"width"` Width string `json:"width"`
Height float64 `json:"height"` Height string `json:"height"`
} }
// Product product properties // Product product properties

View File

@@ -2,10 +2,12 @@ package entity
// ProductAttribute product attribute properties // ProductAttribute product attribute properties
type ProductAttribute struct { type ProductAttribute struct {
ID int `json:"id"` ID int `json:"id"`
Name string `json:"name"` Name string `json:"name"`
Slug string `json:"slug"` Slug string `json:"slug"`
Type string `json:"type"` Type string `json:"type"`
OrderBy string `json:"order_by"` OrderBy string `json:"order_by"`
HasArchives bool `json:"has_archives"` HasArchives bool `json:"has_archives"`
Visible bool `json:"visible,omitempty"`
Options []string `json:"options,omitempty"`
} }

View File

@@ -11,4 +11,5 @@ type ProductCategory struct {
Image *ProductImage `json:"image,omitempty"` Image *ProductImage `json:"image,omitempty"`
MenuOrder int `json:"menu_order"` MenuOrder int `json:"menu_order"`
Count int `json:"count"` Count int `json:"count"`
Exclude *bool `json:"exclude,omitempty"`
} }

2
go.mod
View File

@@ -1,6 +1,6 @@
module git.cloudyne.io/go/woogo module git.cloudyne.io/go/woogo
go 1.23.0 go 1.25.1
require ( require (
github.com/araddon/dateparse v0.0.0-20210429162001-6b43995a97de github.com/araddon/dateparse v0.0.0-20210429162001-6b43995a97de