43 lines
1.6 KiB
Go
43 lines
1.6 KiB
Go
package models
|
|
|
|
type ImportPropertyTypeGroup struct {
|
|
ID int `json:"id,omitempty"`
|
|
Label string `json:"label"`
|
|
Description string `json:"description"`
|
|
PropertyTypeGroups []ImportPropertyTypeGroup `json:"propertyTypeGroups,omitempty"`
|
|
PropertyTypes []ImportPropertyType `json:"propertyTypes,omitempty"`
|
|
}
|
|
|
|
type ImportPropertyType struct {
|
|
ID int `json:"id,omitempty"`
|
|
Label string `json:"label"`
|
|
Description string `json:"description"`
|
|
}
|
|
|
|
type ImportProperty struct {
|
|
ID int `json:"id,omitempty"`
|
|
PropertyTypeID int `json:"propertyTypeId,omitempty"`
|
|
ProductID int `json:"productId,omitempty"`
|
|
ProductGroupID int `json:"productGroupId,omitempty"`
|
|
Label string `json:"property"`
|
|
Value string `json:"value"`
|
|
}
|
|
|
|
type ImportProductGroup struct {
|
|
ID int `json:"id,omitempty"`
|
|
Label string `json:"label"`
|
|
Description string `json:"description"`
|
|
ProductGroups []ImportProductGroup `json:"productGroups,omitempty"`
|
|
Products []ImportProduct `json:"products,omitempty"`
|
|
Properties []ImportProperty `json:"properties,omitempty"`
|
|
}
|
|
|
|
type ImportProduct struct {
|
|
ID int `json:"id,omitempty"`
|
|
ExternalID string `json:"externalId"`
|
|
Label string `json:"label"`
|
|
Description string `json:"description"`
|
|
ProductGroupID int `json:"productGroupId,omitempty"`
|
|
Properties []ImportProperty `json:"properties,omitempty"`
|
|
}
|