biz

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2023 License: MIT Imports: 5 Imported by: 0

README

Biz

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewSkuBiz)

ProviderSet is biz providers.

Functions

This section is empty.

Types

type SkuCase

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

func NewSkuBiz

func NewSkuBiz(repo SkuRepo, logger log.Logger) *SkuCase

func (*SkuCase) AddSku added in v0.0.2

func (p *SkuCase) AddSku(ctx context.Context, model string, brand, encap, category int64, img, pdf, desc, metas string) (*sku.SKU, error)

func (*SkuCase) FindSku added in v0.0.2

func (p *SkuCase) FindSku(ctx context.Context, sku string) (*sku.SKU, error)

func (*SkuCase) GetSkuByModelBrand

func (p *SkuCase) GetSkuByModelBrand(ctx context.Context, model, brand string) (*sku.SKU, error)

func (*SkuCase) Search added in v0.0.3

func (p *SkuCase) Search(ctx context.Context, model string) ([]sku.SKU, error)

type SkuRepo

type SkuRepo interface {
	Search(string) ([]sku.SKU, error)
	FindSku(string) (*sku.SKU, error)
	//SetSku(string,string,string,string,string,string,string,int64) (*sku.SKU,error)
	AddSku(string, int64, int64, int64, string, string, string, string) (*sku.SKU, error)
	GetSkuByModelBrand(string, string) (*sku.SKU, error)
}

Jump to

Keyboard shortcuts

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