Documentation ¶
Index ¶
- func New(addrRepo domain.AddressRepository) domain.AddressUseCase
- type AddressUsecase
- func (au *AddressUsecase) Create(ctx context.Context, addr *domain.Address) error
- func (au *AddressUsecase) Delete(ctx context.Context, userID, id uint) error
- func (au *AddressUsecase) GetAll(ctx context.Context, userID uint, title string) ([]domain.Address, error)
- func (au *AddressUsecase) GetByID(ctx context.Context, userID, id uint) (*domain.Address, error)
- func (au *AddressUsecase) Update(ctx context.Context, addr *domain.Address) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(addrRepo domain.AddressRepository) domain.AddressUseCase
New creates a new CategoryUsecase instance.
Types ¶
type AddressUsecase ¶
type AddressUsecase struct {
// contains filtered or unexported fields
}
AddressUsecase is a struct that implements AddressUsecase interface.
func (*AddressUsecase) Delete ¶
func (au *AddressUsecase) Delete(ctx context.Context, userID, id uint) error
Delete removes the Address with the specified ID.
func (*AddressUsecase) GetAll ¶
func (au *AddressUsecase) GetAll(ctx context.Context, userID uint, title string) ([]domain.Address, error)
GetAll returns all Addresses.
Click to show internal directories.
Click to hide internal directories.