interfaces

package
v0.0.0-...-5e1236a Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 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 CartRepo

type CartRepo interface {
	GetUserCart(ctx context.Context, userID uuid.UUID) (*model.Cart, error)
	CreateCart(ctx context.Context, cart model.Cart) error
	DeleteCart(ctx context.Context, userID uuid.UUID) error
	DeleteCartCartlines(ctx context.Context, userID uuid.UUID) error

	GetCartline(ctx context.Context, userID, productID uuid.UUID) (*model.CartLine, error)
	CreateCartline(ctx context.Context, cartline *model.CartLine) error
	CreateCartlines(ctx context.Context, cartlines []*model.CartLine) error
	UpdateCartline(ctx context.Context, cartline model.CartLine) error
	DeleteCartline(ctx context.Context, userID uuid.UUID, productID uuid.UUID) error
	DeleteProductCartlines(ctx context.Context, productID uuid.UUID) error
}

type CartTaskRepo

type CartTaskRepo interface {
	CreateCartTask(ctx context.Context, task model.CartTask) error
	GetCartTasks(ctx context.Context, to int64) ([]*model.CartTask, error)
}

Jump to

Keyboard shortcuts

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