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 NewCartService ¶
func NewCartService(db repository.PersistencePort, cache repository.CachePort, mq repository.MqPort) *CartService
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
Click to show internal directories.
Click to hide internal directories.