Documentation ¶
Index ¶
- type Service
- func (s *Service) AddWishlistItem(ctx context.Context, item *wishlistPkg.Item) error
- func (s *Service) Archive(ctx context.Context, id wishlistPkg.ID) error
- func (s *Service) BookItem(ctx context.Context, itemID wishlistPkg.ItemID, userID user.ID) error
- func (s *Service) Create(ctx context.Context, wishlist *wishlistPkg.Wishlist) error
- func (s *Service) Get(ctx context.Context, id wishlistPkg.ID) (*wishlistPkg.Wishlist, error)
- func (s *Service) GetByUserID(ctx context.Context, userID user.ID) (wishlistPkg.Wishlists, error)
- func (s *Service) GetWishlistItem(ctx context.Context, itemID wishlistPkg.ItemID) (*wishlistPkg.Item, error)
- func (s *Service) GetWishlistItems(ctx context.Context, wishlistID wishlistPkg.ID, limit, offset uint) ([]*wishlistPkg.Item, bool, error)
- func (s *Service) RemoveItem(ctx context.Context, item wishlistPkg.ItemID) error
- func (s *Service) Restore(ctx context.Context, id wishlistPkg.ID) error
- func (s *Service) SetBookingAvailabilityForItem(ctx context.Context, itemID wishlistPkg.ItemID, isAvailable bool) error
- func (s *Service) UnBookItem(ctx context.Context, itemID wishlistPkg.ItemID, userID user.ID) error
- func (s *Service) Update(ctx context.Context, wishlist *wishlistPkg.Wishlist) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewWishlistService ¶
func NewWishlistService(storage storage, manager eventManager) *Service
func (*Service) AddWishlistItem ¶
func (*Service) Get ¶
func (s *Service) Get(ctx context.Context, id wishlistPkg.ID) (*wishlistPkg.Wishlist, error)
func (*Service) GetByUserID ¶
func (*Service) GetWishlistItem ¶
func (s *Service) GetWishlistItem(ctx context.Context, itemID wishlistPkg.ItemID) (*wishlistPkg.Item, error)
func (*Service) GetWishlistItems ¶
func (s *Service) GetWishlistItems(ctx context.Context, wishlistID wishlistPkg.ID, limit, offset uint) ([]*wishlistPkg.Item, bool, error)
func (*Service) RemoveItem ¶
func (*Service) SetBookingAvailabilityForItem ¶
func (*Service) UnBookItem ¶
Click to show internal directories.
Click to hide internal directories.