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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CartService

type CartService struct {
	DB    repository.PersistencePort
	Cache repository.CachePort
	MQ    repository.MqPort
}

func (*CartService) ConsumeAddGoods

func (svc *CartService) ConsumeAddGoods(ctx context.Context)

func (*CartService) Verify

func (svc *CartService) Verify(opts ...CartVerifyOps) error

Verify 通过传来的参数进行一系列的校验

func (*CartService) VerifyCount

func (svc *CartService) VerifyCount(cnt int64) CartVerifyOps

type CartVerifyOps

type CartVerifyOps func() error

Jump to

Keyboard shortcuts

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