Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommodityCache ¶
type CommodityDB ¶
type CommodityDB interface { CreateCategory(ctx context.Context, name string) error CreateSpu(ctx context.Context, spu *model.Spu) error CreateSpuImage(ctx context.Context, spuImage *model.SpuImage) error DeleteSpu(ctx context.Context, spuId int64) error IsExistSku(ctx context.Context, spuId int64) (bool, error) GetSpuBySpuId(ctx context.Context, spuId int64) (*model.Spu, error) GetSpuImage(ctx context.Context, spuImageId int64) (*model.SpuImage, error) UpdateSpu(ctx context.Context, spu *model.Spu) error UpdateSpuImage(ctx context.Context, spuImage *model.SpuImage) error DeleteSpuImage(ctx context.Context, spuImageId int64) error DeleteSpuImagesBySpuId(ctx context.Context, spuId int64) (ids []int64, url []string, err error) GetImagesBySpuId(ctx context.Context, spuId int64, offset, limit int) ([]*model.SpuImage, int64, error) }
Click to show internal directories.
Click to hide internal directories.