usecase

package
v0.0.0-...-dd53e7b Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthUsecase

func NewAuthUsecase(repo port.UserRepository, ts port.TokenService) port.AuthService

NewAuthUsecase creates a new auth service instance

func NewCategoryUsecase

func NewCategoryUsecase(repo port.CategoryRepository, cache port.CacheRepository) *categoryUsecase

NewCategoryUsecase creates a new category service instance

func NewOrderUsecase

func NewOrderUsecase(orderRepo port.OrderRepository, productRepo port.ProductRepository,
	categoryRepo port.CategoryRepository, userRepo port.UserRepository,
	paymentRepo port.PaymentRepository, cache port.CacheRepository) port.OrderService

NewOrderUsecase creates a new order service instance

func NewPaymentUsecase

func NewPaymentUsecase(repo port.PaymentRepository, cache port.CacheRepository) port.PaymentService

NewPaymentUsecase creates a new payment service instance

func NewProductUsecase

func NewProductUsecase(productRepo port.ProductRepository, categoryRepo port.CategoryRepository, cache port.CacheRepository) port.ProductService

NewProductUsecase creates a new product service instance

func NewUserUsecase

func NewUserUsecase(repo port.UserRepository, cache port.CacheRepository) port.UserService

NewUserUsecase creates a new user service instance

Types

This section is empty.

Jump to

Keyboard shortcuts

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