product_update

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2026 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

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

func ReqArrayOfMaps

func ReqArrayOfMaps(r *http.Request, key string, defaultValue []map[string]string) []map[string]string

ReqArrayOfMaps extracts an array of maps from request parameters

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

func UI

func UI(config shared.UiConfig, fileManagerURL string) UiInterface

UI creates a new product update controller UI from the given config

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL