command

package
v0.0.0-...-58191dd Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateCustomer

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

func NewCreateCustomer

func NewCreateCustomer(customerRepo model.CustomerRepository) *CreateCustomer

func (CreateCustomer) Do

func (c CreateCustomer) Do(ctx context.Context, customer model.Customer) (int64, error)

type CreateSeller

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

func NewCreateSeller

func NewCreateSeller(sellerRepo model.SellerRepository) *CreateSeller

func (CreateSeller) Do

func (c CreateSeller) Do(ctx context.Context, seller model.Seller) (int64, error)

type DeleteCustomer

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

func NewDeleteCustomer

func NewDeleteCustomer(customerRepo model.CustomerRepository, findCustomer query.FindCustomerById) *DeleteCustomer

func (DeleteCustomer) Do

func (c DeleteCustomer) Do(ctx context.Context, id int64) error

type DeleteSeller

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

func NewDeleteSeller

func NewDeleteSeller(sellerRepo model.SellerRepository, findSellerById query.FindSellerById) *DeleteSeller

func (DeleteSeller) Do

func (c DeleteSeller) Do(ctx context.Context, id int64) error

type UpdateCustomer

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

func NewUpdateCustomer

func NewUpdateCustomer(customerRepo model.CustomerRepository, findCustomer query.FindCustomerById) *UpdateCustomer

func (UpdateCustomer) Do

func (c UpdateCustomer) Do(ctx context.Context, customerId int64, updateCustomer model.UpdateCustomer) error

type UpdateSeller

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

func NewUpdateSeller

func NewUpdateSeller(sellerRepo model.SellerRepository, findSeller query.FindSellerById) *UpdateSeller

func (UpdateSeller) Do

func (c UpdateSeller) Do(ctx context.Context, SellerId int64, updateSeller model.UpdateSeller) error

Jump to

Keyboard shortcuts

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