Documentation ¶
Index ¶
- func NewCreateProductUseCase(productRepository repositories.IProductRepository) interfaces.ICreateProductUseCase
- func NewDeleteProductUseCase(repo repositories.IProductRepository) interfaces.IDeleteProductUseCase
- func NewFindProductUseCase(productRepository repositories.IProductRepository) interfaces.IFindProductUseCase
- func NewUpdateProductUseCase(productRepository repositories.IProductRepository) interfaces.IUpdateProductUseCase
- type DeleteProductUseCase
- type FindProductUseCase
- type UpdateProductUseCase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCreateProductUseCase ¶
func NewCreateProductUseCase(productRepository repositories.IProductRepository) interfaces.ICreateProductUseCase
func NewDeleteProductUseCase ¶
func NewDeleteProductUseCase(repo repositories.IProductRepository) interfaces.IDeleteProductUseCase
func NewFindProductUseCase ¶
func NewFindProductUseCase(productRepository repositories.IProductRepository) interfaces.IFindProductUseCase
func NewUpdateProductUseCase ¶
func NewUpdateProductUseCase(productRepository repositories.IProductRepository) interfaces.IUpdateProductUseCase
Types ¶
type DeleteProductUseCase ¶
type DeleteProductUseCase struct {
// contains filtered or unexported fields
}
func (*DeleteProductUseCase) Execute ¶
func (d *DeleteProductUseCase) Execute(id string) error
type FindProductUseCase ¶
type FindProductUseCase struct {
// contains filtered or unexported fields
}
func (FindProductUseCase) Execute ¶
func (r FindProductUseCase) Execute(productId string) (output.ProductData, error)
type UpdateProductUseCase ¶
type UpdateProductUseCase struct {
// contains filtered or unexported fields
}
func (*UpdateProductUseCase) Execute ¶
func (u *UpdateProductUseCase) Execute(inputProduct *input.ProductData) (output.ProductData, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.