Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppUseCase ¶
type AppUseCase struct { ProductUsecase IProductUsecase UserUsecase IUserUsecase }
func NewAppUseCase ¶
func NewAppUseCase( ProductRepo repository.IProductRepository, UserRepo repository.IUserRepository, ) AppUseCase
type IProductUsecase ¶
type IProductUsecase interface { Create(request domain.CreateProductRequest) (domain.Product, *exception.Error) List() ([]domain.Product, *exception.Error) }
func NewProductUsecase ¶
func NewProductUsecase(productRepository *repository.IProductRepository) IProductUsecase
type IUserUsecase ¶
func NewUserUsecase ¶
func NewUserUsecase(repo *repository.IUserRepository) IUserUsecase
Click to show internal directories.
Click to hide internal directories.