address

package
v0.0.0-...-d4bccd0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

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 (a *AddressRepository) AddAddress(address _entities.Address) (_entities.Address, error)

func (*AddressRepository) Delete

func (a *AddressRepository) Delete(id uint) error

func (*AddressRepository) GetByID

func (a *AddressRepository) GetByID(id uint) (_entities.Address, error)

func (*AddressRepository) GetByUser

func (a *AddressRepository) GetByUser(id uint) ([]_entities.Address, error)

func (*AddressRepository) Update

func (a *AddressRepository) Update(address _entities.Address) (_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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL