usecase

package
v0.0.0-...-86f4363 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: Apache-2.0 Imports: 9 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) (id int64, 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