service

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommodityService

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

func (*CommodityService) ConsumeCreateSpuMsg

func (svc *CommodityService) ConsumeCreateSpuMsg(ctx context.Context)

func (*CommodityService) ConsumeDeleteSpuMsg

func (svc *CommodityService) ConsumeDeleteSpuMsg(ctx context.Context)

func (*CommodityService) ConsumeUpdateSpuMsg

func (svc *CommodityService) ConsumeUpdateSpuMsg(ctx context.Context)

func (*CommodityService) CreateCategory

func (svc *CommodityService) CreateCategory(ctx context.Context, category *model.Category) error

func (*CommodityService) CreateSpu

func (svc *CommodityService) CreateSpu(ctx context.Context, spu *model.Spu) (int64, error)

func (*CommodityService) CreateSpuImage

func (svc *CommodityService) CreateSpuImage(ctx context.Context, spuImage *model.SpuImage) (int64, error)

func (*CommodityService) DeleteAllSpuImages

func (svc *CommodityService) DeleteAllSpuImages(ctx context.Context, spuId int64) error

func (*CommodityService) DeleteCategory

func (svc *CommodityService) DeleteCategory(ctx context.Context, category *model.Category) (err error)

func (*CommodityService) DeleteSpu

func (svc *CommodityService) DeleteSpu(ctx context.Context, spuId int64, url string) error

func (*CommodityService) DeleteSpuImage

func (svc *CommodityService) DeleteSpuImage(ctx context.Context, imageId int64, url string) error

func (*CommodityService) GetSpuFromImageId

func (svc *CommodityService) GetSpuFromImageId(ctx context.Context, imageId int64) (*model.Spu, *model.SpuImage, error)

func (*CommodityService) GetSpuImages

func (svc *CommodityService) GetSpuImages(ctx context.Context, spuId int64, offset, limit int) ([]*model.SpuImage, int64, error)

func (*CommodityService) IdentifyUser

func (svc *CommodityService) IdentifyUser(ctx context.Context, uid int64) error

func (*CommodityService) IdentifyUserInStreamCtx

func (svc *CommodityService) IdentifyUserInStreamCtx(ctx context.Context, uid int64) error

func (*CommodityService) IsSpuMappingExist

func (svc *CommodityService) IsSpuMappingExist(ctx context.Context) error

func (*CommodityService) MatchDeleteSpuCondition

func (svc *CommodityService) MatchDeleteSpuCondition(ctx context.Context, spuId int64) (*model.Spu, error)

func (*CommodityService) SendCreateSpuMsg

func (svc *CommodityService) SendCreateSpuMsg(ctx context.Context, spu *model.Spu)

func (*CommodityService) SendDeleteSpuMsg

func (svc *CommodityService) SendDeleteSpuMsg(ctx context.Context, id int64)

func (*CommodityService) SendUpdateSpuMsg

func (svc *CommodityService) SendUpdateSpuMsg(ctx context.Context, spu *model.Spu)

func (*CommodityService) UpdateSpu

func (svc *CommodityService) UpdateSpu(ctx context.Context, spu *model.Spu, originSpu *model.Spu) error

func (*CommodityService) UpdateSpuImage

func (svc *CommodityService) UpdateSpuImage(ctx context.Context, spuImage *model.SpuImage, originSpuImage *model.SpuImage) error

func (*CommodityService) Verify

func (svc *CommodityService) Verify(opts ...CommodityVerifyOps) error

func (*CommodityService) VerifyForSaleStatus

func (svc *CommodityService) VerifyForSaleStatus(status int) CommodityVerifyOps

type CommodityVerifyOps

type CommodityVerifyOps func() error

Jump to

Keyboard shortcuts

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