repository

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomerRepository

type CustomerRepository interface {
	Save(ctx context.Context, customer entity.Customer) (entity.Customer, error)
	FindAll(ctx context.Context) ([]entity.Customer, error)
	FindById(ctx context.Context, id int64) (entity.Customer, error)
	UpdateById(ctx context.Context, id int64, customer entity.Customer) (entity.Customer, error)
	DeleteById(ctx context.Context, id int64) error
	WithTx(ctx context.Context, callback func(ctx context.Context) error) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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