clientproduct

package
v0.0.0-...-fb33920 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientProductService

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

ClientProductService client-product usecase

func NewClientProductService

func NewClientProductService(cs client.UseCase, ps product.UseCase) *ClientProductService

NewClientProductService create a new use case

func (*ClientProductService) Subscribe

func (s *ClientProductService) Subscribe(c *entity.Client, p *entity.Product) error

Subscribe subscribe or add a product to a client record

func (*ClientProductService) Unsubscribe

func (s *ClientProductService) Unsubscribe(c *entity.Client, p *entity.Product) error

Unsubscribe unsubscribe or remove a product from a client record

type UseCase

type UseCase interface {
	Subscribe(c *entity.Client, p *entity.Product) error
	Unsubscribe(c *entity.Client, p *entity.Product) error
}

Jump to

Keyboard shortcuts

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