Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { ID primitive.ObjectID `json:"_id,omitempty" bson:"_id,omitempty"` Name string `json:"name,omitempty" bson:"name"` Email string `json:"email,omitempty" bson:"email"` Password string `json:"password,omitempty" bson:"password"` IsActive bool `json:"isActive,omitempty" bson:"isActive"` LastSession primitive.DateTime `json:"lastSession,omitempty" bson:"lastSession"` }
User represent the entity of Users, as json response or entity for the database
func (*User) ValidateToCreate ¶
ValidateToCreate validate if the information of the struct have the enough and correct data for been stored
func (*User) ValidateToUpdate ¶
ValidateToUpdate validate if the information of the struct have the enough and correc data for been updated
Click to show internal directories.
Click to hide internal directories.