Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitCustomerService ¶
func InitCustomerService(collection *mongo.Collection, ctx context.Context) interfaces.ICustomer
Types ¶
type CustomerService ¶
type CustomerService struct { CustomerCollection *mongo.Collection // contains filtered or unexported fields }
func (*CustomerService) CreateCustomer ¶
func (p *CustomerService) CreateCustomer(customer *models.Customer) (*models.DBResponse, error)
CreateCustomer implements interfaces.ICustomer.
Click to show internal directories.
Click to hide internal directories.