Documentation ¶
Index ¶
- type ProductRepository
- type ProductRepositoryGorm
- func (r *ProductRepositoryGorm) Count(params *shared.Parameters) shared.Output[int64]
- func (r *ProductRepositoryGorm) Delete(product *domain.Product) shared.Output[*domain.Product]
- func (r *ProductRepositoryGorm) FindAll(params *shared.Parameters) shared.Output[domain.Products]
- func (r *ProductRepositoryGorm) FindByID(id string) shared.Output[*domain.Product]
- func (r *ProductRepositoryGorm) Save(product *domain.Product) shared.Output[*domain.Product]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProductRepository ¶
type ProductRepository interface { Save(*domain.Product) shared.Output[*domain.Product] Delete(*domain.Product) shared.Output[*domain.Product] FindByID(string) shared.Output[*domain.Product] FindAll(*shared.Parameters) shared.Output[domain.Products] Count(*shared.Parameters) shared.Output[int64] }
ProductRepository interface
type ProductRepositoryGorm ¶
type ProductRepositoryGorm struct {
// contains filtered or unexported fields
}
ProductRepositoryGorm struct
func NewProductRepositoryGorm ¶
func NewProductRepositoryGorm(db *gorm.DB) *ProductRepositoryGorm
NewProductRepositoryGorm function
func (*ProductRepositoryGorm) Count ¶
func (r *ProductRepositoryGorm) Count(params *shared.Parameters) shared.Output[int64]
Count function
func (*ProductRepositoryGorm) FindAll ¶
func (r *ProductRepositoryGorm) FindAll(params *shared.Parameters) shared.Output[domain.Products]
FindAll function
Click to show internal directories.
Click to hide internal directories.