Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CartService ¶
type CartService interface { CreateCart() (*entity.Cart, error) GetCartById(string) (entity.Cart, error) DeleteCartById(uuid.UUID) error GetCartItemsByCartId(uuid.UUID) ([]entity.CartItem, error) GetCartItemByCartIdAndProductId(cart_id uuid.UUID, product_id uint) (entity.CartItem, error) GetCartSerializer(entity.Cart) interface{} SaveCartItem(entity.CartItem) (entity.CartItem, error) }
func NewCartService ¶
func NewCartService(cartRepository repositories.CartRepository) CartService
type OrderService ¶
type OrderService interface { CreateOrder(entity.Order) (*entity.Order, error) CreateOrderItems([]entity.OrderItem) error GetOrderItemsByOrderId(id uuid.UUID) ([]entity.OrderItem, error) GetOrderByUserId(user_id uint) ([]entity.Order, error) }
func NewOrderService ¶
func NewOrderService(orderRepository repositories.OrderRepository) OrderService
type ProductService ¶
type ProductService interface { CreateProduct(*entity.Product) (*entity.Product, error) GetAllProducts() ([]entity.Product, error) GetProductById(uint) (entity.Product, error) DeleteProduct(*entity.Product) error }
func NewProductService ¶
func NewProductService(productRepository repositories.ProductRepository) ProductService
type ResponseCart ¶
type ResponseCartItem ¶
type UserService ¶
type UserService interface { CreateUser(*entity.User) (*entity.User, error) GetUserByUsername(string) (*entity.User, error) }
func NewUserService ¶
func NewUserService(userRepository repositories.UserRepository) UserService
Click to show internal directories.
Click to hide internal directories.