usecase

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

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

Go to latest
Published: Feb 25, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type CommodityUseCase

type CommodityUseCase interface {
	CreateCategory(ctx context.Context, category *model.Category) (int64, error)
	DeleteCategory(ctx context.Context, category *model.Category) (err error)
	UpdateCategory(ctx context.Context, category *model.Category) (err error)
	ViewCategory(ctx context.Context, pageNum, pageSize int) (resp []*kmodel.CategoryInfo, err error)
	CreateSpu(ctx context.Context, spu *model.Spu) (id int64, err error)
	CreateSpuImage(ctx context.Context, spuImage *model.SpuImage) (int64, error)
	DeleteSpu(ctx context.Context, spuId int64) error
	UpdateSpu(ctx context.Context, spu *model.Spu) error
	UpdateSpuImage(ctx context.Context, spuImage *model.SpuImage) error
	DeleteSpuImage(ctx context.Context, imageId int64) error
	ViewSpuImages(ctx context.Context, spuId int64, offset, limit int) ([]*model.SpuImage, int64, error)
	ViewSpus(ctx context.Context, req *commodity.ViewSpuReq) ([]*model.Spu, int64, error)
}

Jump to

Keyboard shortcuts

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