Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitCustomerService ¶
func InitCustomerService(client *mongo.Client, customer *mongo.Collection, transaction *mongo.Collection, ctx context.Context) interfaces.ICustomer
Types ¶
type CustomerService ¶
type CustomerService struct { CustomerCollection *mongo.Collection TransactionCollection *mongo.Collection // contains filtered or unexported fields }
func (*CustomerService) CreateCustomer ¶
func (c *CustomerService) CreateCustomer(user *models.Customer) (*models.DBResponse, error)
func (*CustomerService) TransferTransaction ¶ added in v1.0.2
Click to show internal directories.
Click to hide internal directories.