Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomerRepository ¶
type CustomerRepository interface { GetCustomerPersonalInfo(ctx context.Context, customerID uint64) (*valueobject.CustomerPersonalInfo, error) GetCustomerDeliveryInfo(ctx context.Context, customerID uint64) (*valueobject.CustomerDeliveryInfo, error) UpdateCustomerPersonalInfo(ctx context.Context, customerID uint64, personalInfo *valueobject.CustomerPersonalInfo) error UpdateCustomerDeliveryInfo(ctx context.Context, customerID uint64, deliveryInfo *valueobject.CustomerDeliveryInfo) error }
CustomerRepository is the customer repository interface
type JWTAuthRepository ¶
type JWTAuthRepository interface { // CheckCustomer checks if the customer exists and is active CheckCustomer(ctx context.Context, customerID uint64) (bool, bool, error) CreateCustomer(ctx context.Context, customer *entity.Customer) error GetCustomerCredentials(ctx context.Context, email string) (bool, *valueobject.CustomerCredentials, error) }
JWTAuthRepository is the jwt auth repository interface
Click to show internal directories.
Click to hide internal directories.