Documentation ¶
Index ¶
- type ProductPostgres
- func (r *ProductPostgres) CreateCategory(e *entities.Category) (*entities.Category, error)
- func (r *ProductPostgres) CreateManufacturer(e *entities.Manufacturer) (*entities.Manufacturer, error)
- func (r *ProductPostgres) CreateProduct(e *entities.Product) (*entities.Product, error)
- func (r *ProductPostgres) DeleteCategory(id entities.ID) error
- func (r *ProductPostgres) DeleteImage(id entities.ID) error
- func (r *ProductPostgres) DeleteManufacturer(id entities.ID) error
- func (r *ProductPostgres) DeleteProduct(id entities.ID) error
- func (r *ProductPostgres) GetCategory(id entities.ID) (*entities.Category, error)
- func (r *ProductPostgres) GetImage(id entities.ID) (*entities.Image, error)
- func (r *ProductPostgres) GetManufacturer(id entities.ID) (*entities.Manufacturer, error)
- func (r *ProductPostgres) GetProduct(id entities.ID) (*entities.Product, error)
- func (r *ProductPostgres) ListCategories() ([]*entities.Category, error)
- func (r *ProductPostgres) ListManufacturers() ([]*entities.Manufacturer, error)
- func (r *ProductPostgres) ListProducts() ([]*entities.Product, error)
- func (r *ProductPostgres) UpdateCategory(e *entities.Category) (*entities.Category, error)
- func (r *ProductPostgres) UpdateImage(id entities.ID, ownerID entities.ID, newOrder int) ([]*entities.Image, error)
- func (r *ProductPostgres) UpdateManufacturer(e *entities.Manufacturer) (*entities.Manufacturer, error)
- func (r *ProductPostgres) UpdateProduct(e *entities.Product) (*entities.Product, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProductPostgres ¶
type ProductPostgres struct {
// contains filtered or unexported fields
}
func NewProductPostgres ¶
func NewProductPostgres(db *gorm.DB) (*ProductPostgres, error)
func (*ProductPostgres) CreateCategory ¶
func (*ProductPostgres) CreateManufacturer ¶
func (r *ProductPostgres) CreateManufacturer(e *entities.Manufacturer) (*entities.Manufacturer, error)
func (*ProductPostgres) CreateProduct ¶
func (*ProductPostgres) DeleteCategory ¶
func (r *ProductPostgres) DeleteCategory(id entities.ID) error
func (*ProductPostgres) DeleteImage ¶
func (r *ProductPostgres) DeleteImage(id entities.ID) error
func (*ProductPostgres) DeleteManufacturer ¶
func (r *ProductPostgres) DeleteManufacturer(id entities.ID) error
func (*ProductPostgres) DeleteProduct ¶
func (r *ProductPostgres) DeleteProduct(id entities.ID) error
func (*ProductPostgres) GetCategory ¶
func (*ProductPostgres) GetManufacturer ¶
func (r *ProductPostgres) GetManufacturer(id entities.ID) (*entities.Manufacturer, error)
func (*ProductPostgres) GetProduct ¶
func (*ProductPostgres) ListCategories ¶
func (r *ProductPostgres) ListCategories() ([]*entities.Category, error)
func (*ProductPostgres) ListManufacturers ¶
func (r *ProductPostgres) ListManufacturers() ([]*entities.Manufacturer, error)
func (*ProductPostgres) ListProducts ¶
func (r *ProductPostgres) ListProducts() ([]*entities.Product, error)
func (*ProductPostgres) UpdateCategory ¶
func (*ProductPostgres) UpdateImage ¶
func (*ProductPostgres) UpdateManufacturer ¶
func (r *ProductPostgres) UpdateManufacturer(e *entities.Manufacturer) (*entities.Manufacturer, error)
func (*ProductPostgres) UpdateProduct ¶
Click to show internal directories.
Click to hide internal directories.