Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthRequest ¶
type LoginResponse ¶
type Product ¶
type Product struct { Entity Id primitive.ObjectID `json:"id" bson:"_id"` Name string `json:"name" bson:"name"` Description string `json:"description,omitempty" bson:"description"` BasePrice string `json:"basePrice" bson:"basePrice"` Category string `json:"category" bson:"category"` ImageURL string `json:"imageURL,omitempty" bson:"imageURL"` Tags []string `json:"tags,omitempty" bson:"tags,omitempty"` Version int `json:"version" bson:"version"` }
type SignedDetails ¶
type SignupResponse ¶
type User ¶
type User struct { Id primitive.ObjectID `json:"id" bson:"_id"` Name string `json:"name" bson:"name" binding:"required"` Email string `json:"email" bson:"email" binding:"required"` Password string `json:"password" bson:"password" binding:"required,min=8"` PasswordConfirm string `json:"passwordConfirm" bson:"passwordConfirm,omitempty" binding:"required"` Role string `json:"role" bson:"role"` VerificationCode string `json:"verificationCode,omitempty" bson:"verificationCode,omitempty"` ResetPasswordToken string `json:"resetPasswordToken,omitempty" bson:"resetPasswordToken,omitempty"` ResetPasswordAt time.Time `json:"resetPasswordAt,omitempty" bson:"resetPasswordAt,omitempty"` Status string `json:"status" bson:"status"` Verified bool `json:"verified" bson:"verified"` CreatedAt time.Time `json:"createdAt" bson:"createdAt"` UpdatedAt time.Time `json:"updatedAt" bson:"updatedAt"` }
Click to show internal directories.
Click to hide internal directories.