15 lines
371 B
Go
15 lines
371 B
Go
package account
|
|
|
|
import (
|
|
"context"
|
|
customermodel "git.sendico.io/tech/sxchnge/product/customers/model"
|
|
|
|
"git.sendico.io/tech/sxchnge/shared/database/template"
|
|
)
|
|
|
|
// DB is the interface which must be implemented by all db drivers
|
|
type DB interface {
|
|
template.DB[*customermodel.Account]
|
|
GetByEmail(ctx context.Context, email string) (*customermodel.Account, error)
|
|
}
|