pages

package
v0.0.0-...-2d549ef Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsoleMessage

type ConsoleMessage struct {
	Log   []string
	Warn  []string
	Error []string
}

type PaginationItem

type PaginationItem struct {
	Page        uint64
	Url         string
	CurrentPage uint64
}

type ProductGridItem

type ProductGridItem struct {
	Id               uuid.UUID                     `json:"id" db:"id"`
	No               int32                         `json:"no" db:"no"`
	Sku              string                        `json:"sku" db:"sku"`
	Brand            string                        `json:"brand" db:"brand"`
	Name             string                        `json:"name" db:"name"`
	ShortDescription string                        `json:"short_description" db:"short_description"`
	Url              string                        `json:"url" db:"url"`
	SalePrice        string                        `json:"sale_price" db:"price"`
	Price            string                        `json:"price" db:"price"`
	Currency         string                        `json:"currency" db:"currency"`
	Quantity         int64                         `json:"quantity" db:"quantity"`
	Status           string                        `json:"status" db:"status"`
	IsTaxable        bool                          `json:"is_taxable" db:"is_taxable"`
	SeoTitle         string                        `json:"seo_title" db:"seo_title"`
	SeoDescription   string                        `json:"seo_description" db:"seo_description"`
	Categories       []string                      `json:"categories" db:"categories"`
	Tags             map[uint64]ProductListItemTag `json:"tags" db:"tags"`
	MainImage        *db.Image                     `json:"main_image" db:"main_image"`
	HoverImage       *db.Image                     `json:"hover_image" db:"hover_image"`
}

type ProductGridTagTypes

type ProductGridTagTypes struct {
	TagTypes    *map[uuid.UUID]db.TagType
	TagOrder    *map[uuid.UUID]uint64
	TagTypesIds *[]uuid.UUID
}

type ProductListItemTag

type ProductListItemTag struct {
	Name  string
	Url   string
	Value string
}

type ProductsPageParams

type ProductsPageParams struct {
	Currency            db.Currency
	RegularPriceTypeIds []uuid.UUID
	SpecialPriceTypeIds []uuid.UUID
	Page                *uint64
	PerPage             *uint64
	Count               *uint64
}

type ProductsPageUrl

type ProductsPageUrl struct {
	Params ProductsPageUrlParams
	Url    string
}

type ProductsPageUrlParams

type ProductsPageUrlParams struct {
	Category *string
	Currency *string
	Page     *uint64
	PerPage  *uint64
	Count    *uint64
}

type Shop

type Shop struct {
	Id               uuid.UUID
	Name             string
	SeoTitle         string
	ShortDescription string
	Description      string
	Url              string
	Image            *db.Image
	HoverImage       *db.Image
	Page             uint64
	PerPage          uint64
	SortOrder        int
	Active           bool
	Prime            bool
	CreatedAt        time.Time
	CreatedBy        uuid.UUID
	UpdatedAt        time.Time
	UpdatedBy        uuid.UUID
}

type ShopPage

type ShopPage struct {
	Id               uuid.UUID
	Name             template.HTML
	SeoTitle         template.HTML
	ShortDescription template.HTML
	Description      template.HTML
	Items            []ProductGridItem
	Filters          *map[uint64]ShopPageFilterItem
	Url              string
	Page             uint64
	PerPage          uint64
	TotalPages       uint64
	TotalItems       uint64
	Pagination       map[uint64]PaginationItem
	ConsoleMessage   ConsoleMessage

	// url
	ShopPageUrl string
}

type ShopPageFilterItem

type ShopPageFilterItem struct {
	Id      uuid.UUID
	Name    string
	Url     string
	Options map[uint64]ShopPageFilterSelectItem
}

type ShopPageFilterSelectItem

type ShopPageFilterSelectItem struct {
	Id     uuid.UUID
	Name   string
	Url    string
	Active bool
}

Jump to

Keyboard shortcuts

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