grab_handler

package
v1.1.61 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCacheProduct added in v1.1.15

func CreateCacheProduct(
	namespace string,
	layout *model_public.PdpGetlayoutQueryResp,
	pdp *model_public.PdpGetDataP2Resp,
) (mongorepo.CacheProduct, error)

Types

type CacheProductHandler

type CacheProductHandler struct {
	// contains filtered or unexported fields
}

func NewCacheProductHandler

func NewCacheProductHandler(repo *mongorepo.ProductRepo) *CacheProductHandler

func (*CacheProductHandler) AddItem added in v1.1.15

func (handler *CacheProductHandler) AddItem(
	namespace string,
	layout *model_public.PdpGetlayoutQueryResp,
	pdpDataP2 *model_public.PdpGetDataP2Resp,
) error

type ProductParser

type ProductParser struct {
	ShopId         int
	ProductId      int
	CatId          int
	ProductSold    int
	Stock          int
	ProductContent model_public.ProductContentComponent
	ProductDetail  model_public.ProductDetailComponent
	ProductMedia   model_public.MediaComponent
	ProductDesc    model_public.ProductDetailContent
	Images         []string
	Category       []int64
	Categories     []mongorepo.ProductCategory
}

Jump to

Keyboard shortcuts

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