seller

package
v0.0.0-...-241bfea Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

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

func NewRepository

func NewRepository(database *postgres.Database) *Repository

func (*Repository) CreateSellerContext

func (r *Repository) CreateSellerContext(
	ctx context.Context,
	firstName string,
	lastName string,
	middleName string,
	birthDate modelcore.Date,
	salary modelcore.Money,
	phoneNumber string,
	worksAt *model.WorksAt,
) (int32, error)

func (*Repository) PatchSellerContext

func (r *Repository) PatchSellerContext(
	ctx context.Context,
	id int32,
	firstName *string,
	lastName *string,
	middleName *string,
	birthDate *protocore.Date,
	salary *protocore.Money,
	phoneNumber *string,
	worksAt *proto.NewWorksAt,
) error

func (*Repository) SellerContext

func (r *Repository) SellerContext(ctx context.Context, id int32) (*proto.Seller, error)

func (*Repository) SellersContext

func (r *Repository) SellersContext(ctx context.Context, filter *model.Filter) ([]model.Seller, error)

Jump to

Keyboard shortcuts

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