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"` First_name *string `json:"first_name" validate:"required,min=2,max=100"` Last_name *string `json:"last_name" 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"` Token *string `json:"token"` User_type *string `json:"user_type" validate:"required,eq=ADMIN|eq=USER"` Refresh_token *string `json:"refresh_token"` Created_at time.Time `json:"created_at"` Updated_at time.Time `json:"updated_at"` User_id string `json:"user_id"` }
Click to show internal directories.
Click to hide internal directories.