Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressModel ¶
type AddressModel struct { Id primitive.ObjectID `json:"_id" bson:"_id,omitempty"` Name string `json:"name" bson:"name"` Phone string `json:"phone" bson:"phone"` Street string `json:"street" bson:"street"` City string `json:"city" bson:"city"` State string `json:"state" bson:"state"` Pincode string `json:"pincode" bson:"pincode"` Country string `json:"country" bson:"country"` CreatedAt time.Time `json:"created_at" bson:"created_at"` UpdatedAt time.Time `json:"updated_at" bson:"updated_at"` }
type CreateUserAddressReq ¶
type CreateUserAddressReq struct { Name string `json:"name" form:"name" validate:"required,max=255"` Street string `json:"street" form:"street" validate:"required,max=255"` City string `json:"city" form:"city" validate:"required,max=255"` Phone string `json:"phone" form:"phone" validate:"required,max=255"` Pincode string `json:"pincode" form:"pincode" validate:"required,max=255"` State string `json:"state" form:"state" validate:"required,max=255"` Country string `json:"country" form:"country" validate:"required,max=255"` }
type CreateUserReq ¶
type ResetPasswordReq ¶
type User ¶
type User struct { Id primitive.ObjectID `json:"_id" bson:"_id,omitempty"` Email string `json:"email" bson:"email"` Password string `json:"password" bson:"password"` Username string `json:"username" bson:"username"` WalletAmount float64 `json:"wallet_amount" bson:"wallet_amount"` OTP string `json:"otp" bson:"otp"` OtpExpiredAt time.Time `json:"otp_expired_at" bson:"otp_expired_at"` CreatedAt time.Time `json:"created_at" bson:"created_at"` UpdatedAt time.Time `json:"updated_at" bson:"updated_at"` UserRoles []UserRole `bson:"user_roles"` IsBlocked bool `json:"is_blocked" bson:"is_blocked"` WishList []string `json:"wishlist" bson:"wishlist"` Addressess []AddressModel `json:"addressess" bson:"addressess"` }
type UserClaims ¶
type UserProfile ¶
type UserProfileBson ¶
type UserProfileBson struct { Id primitive.ObjectID `json:"_id" bson:"_id,omitempty"` Email string `json:"email" bson:"email"` Username string `json:"username" bson:"username"` WalletAmount float64 `json:"wallet_amount" bson:"wallet_amount"` CreatedAt time.Time `json:"created_at" bson:"created_at"` UpdatedAt time.Time `json:"updated_at" bson:"updated_at"` IsBlocked bool `json:"is_blocked" bson:"is_blocked"` }
type UserTransaction ¶
type UserTransaction struct { Id primitive.ObjectID `bson:"_id,omitempty"` UserId string `bson:"user_id"` Amount float64 `bson:"amount"` CreatedAt time.Time `bson:"created_at"` AddressId string `bson:"address_id"` OrderId string `bson:"order_id"` OrderSuccess string `bson:"order_success"` UpdatedAt time.Time `bson:"updated_at"` }
type UserWalletAccount ¶
type UserWishList ¶
Click to show internal directories.
Click to hide internal directories.