Documentation
¶
Index ¶
- func NewProductDetailsComponent(controller *ui) *productDetailsComponent
- func NewProductMediaComponent(controller *ui) *productMediaComponent
- func NewProductMetadataComponent(controller *ui) *productMetadataComponent
- func NewProductTagsComponent(controller *ui) *productTagsComponent
- func ReqArrayOfMaps(r *http.Request, key string, defaultValue []map[string]string) []map[string]string
- type MetadataItem
- type MetadataRequest
- type MetadataResponse
- type UiInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProductDetailsComponent ¶
func NewProductDetailsComponent(controller *ui) *productDetailsComponent
func NewProductMediaComponent ¶
func NewProductMediaComponent(controller *ui) *productMediaComponent
func NewProductMetadataComponent ¶
func NewProductMetadataComponent(controller *ui) *productMetadataComponent
func NewProductTagsComponent ¶
func NewProductTagsComponent(controller *ui) *productTagsComponent
Types ¶
type MetadataItem ¶
type MetadataItem struct {
ID string `json:"id"`
Key string `json:"key"`
Value string `json:"value"`
}
MetadataItem represents a single metadata entry
type MetadataRequest ¶
type MetadataRequest struct {
Metadata []MetadataItem `json:"metadata"`
}
MetadataRequest represents the JSON request for saving metadata
type MetadataResponse ¶
type MetadataResponse struct {
Metadata []MetadataItem `json:"metadata"`
Message string `json:"message"`
}
MetadataResponse represents the JSON response for metadata
type UiInterface ¶
type UiInterface interface {
shared.UiInterface
ProductUpdate(w http.ResponseWriter, r *http.Request)
}
UiInterface defines the product update controller's UI interface
Click to show internal directories.
Click to hide internal directories.