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 `bson:"_id"` FirstName *string `json:"firstName" validate:"required, min=2, max=100"` LastName *string `json:"lastName" validate:"required, min=2, max=100"` Password *string `json:"password" validate:"required, min=6"` Email *string `json:"email" validate:"email, required"` Phone *string `json:"phone" validate:"required, min=10, max=12"` Token *string `json:"token"` UserType *string `json:"userType" validate:"required, eq=ADMIN|eq=USER"` RefreshToken *string `json:"refreshToken"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` UserId string `json:"userId"` }
Click to show internal directories.
Click to hide internal directories.