Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateCustomer ¶
func ValidateCustomer(customerForm *CustomerForm) error
ValidateCustomer takes a user as parameter and check if its properties are valid
Types ¶
type Customer ¶
type Customer struct { ID string `gorm:"primary_key"` Name string `gorm:"size:255"` Email string `gorm:"size:255; unique"` HashedPassword string Role string `gorm:"size:255"` }
Customer type is the structure of the users that we will store in the database
Click to show internal directories.
Click to hide internal directories.