Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Category ¶
type Category struct { ID string `json:"id"` Name string `json:"name"` ListOrder int64 `json:"list_order"` ProductIDs []string `json:"product_ids"` }
Category structure
type Choice ¶
type Option ¶
type Option struct { ID string `json:"id"` CategoryID string `json:"category_id"` ProductID string `json:"product_id"` Name string `json:"name,omitempty"` ListOrder int64 `json:"list_order,omitempty"` Required bool `json:"required,omitempty"` ChoiceType OptionChoiceType `json:"choice_type,omitempty"` }
type OptionChoiceType ¶
type OptionChoiceType string
const ( // OptionChoiceTypeSingle should used for single choices OptionChoiceTypeSingle OptionChoiceType = "single" // OptionChoiceTypeMultiple should used for multiple choices OptionChoiceTypeMultiple OptionChoiceType = "multiple" )
Click to show internal directories.
Click to hide internal directories.