usecase

package
v0.0.0-...-286033a Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateCustomerParams

type CreateCustomerParams struct {
	Name    string
	Email   string
	Street  string
	City    string
	Country string
}

type CustomerUseCase

type CustomerUseCase interface {
	GetCustomer(ctx context.Context, id string) (*entity.Customer, error)
	ListCustomers(ctx context.Context) ([]entity.Customer, error)
	CreateCustomer(ctx context.Context, params *CreateCustomerParams) error
	UpdateCustomer(ctx context.Context, params *UpdateCustomerParams) error
	DeleteCustomer(ctx context.Context, id string) error
}

type UpdateCustomerParams

type UpdateCustomerParams struct {
	ID      string
	Name    string
	Email   string
	Street  string
	City    string
	Country string
}

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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