update_contact

package
v0.0.0-...-4d895cd Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContractsRepository

type ContractsRepository interface {
	GetByID(ctx context.Context, id uint64) (*entities.Contact, error)
	Update(ctx context.Context, contact entities.Contact) error
}

type UseCase

type UseCase struct {
	// contains filtered or unexported fields
}

func NewUseCase

func NewUseCase(contracts ContractsRepository) *UseCase

func (*UseCase) Execute

func (u *UseCase) Execute(ctx context.Context, req port.UpdateContactRequest) error

Jump to

Keyboard shortcuts

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