Documentation
¶
Index ¶
- type AddressRepository
- func (a *AddressRepository) AddAddress(address _entities.Address) (_entities.Address, error)
- func (a *AddressRepository) Delete(id uint) error
- func (a *AddressRepository) GetByID(id uint) (_entities.Address, error)
- func (a *AddressRepository) GetByUser(id uint) ([]_entities.Address, error)
- func (a *AddressRepository) Update(address _entities.Address) (_entities.Address, error)
- type AddressRepositoryInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressRepository ¶
type AddressRepository struct {
// contains filtered or unexported fields
}
func (*AddressRepository) AddAddress ¶
func (*AddressRepository) Delete ¶
func (a *AddressRepository) Delete(id uint) error
func (*AddressRepository) GetByID ¶
func (a *AddressRepository) GetByID(id uint) (_entities.Address, error)
type AddressRepositoryInterface ¶
type AddressRepositoryInterface interface { GetByID(id uint) (_entities.Address, error) GetByUser(id uint) ([]_entities.Address, error) AddAddress(address _entities.Address) (_entities.Address, error) Update(address _entities.Address) (_entities.Address, error) Delete(id uint) error }
func NewAddressRepository ¶
func NewAddressRepository(db *gorm.DB) AddressRepositoryInterface
Click to show internal directories.
Click to hide internal directories.