Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasketAddToBasketRequestModel ¶
type BasketAddToBasketRequestModel struct {
Product string `json:"id"`
}
type BasketResponseModel ¶
type OAuthUser ¶
type OAuthUser struct { ID primitive.ObjectID `bson:"_id" json:"_id,omitempty"` OAuthID string `bson:"oAuthId" json:"oAuthId,omitempty"` UserName string `json:"userName,omitempty" bson:"userName" validate:"omitempty,min=5,max=25"` Password string `json:"password,omitempty" bson:"password"` Email string `json:"email,omitempty" bson:"email" validate:"required,email"` }
type ProductRequest ¶
type ProductRequest struct { CategoryIdHex string `json:"category"` StartIndex uint32 `json:"startIndex"` Search string `json:"search"` SortBy string `json:"sortBy"` MinPrice uint32 `json:"minPrice"` MaxPrice uint32 `json:"maxPrice"` }
func (*ProductRequest) RequestTOMongoDbOption ¶
func (m *ProductRequest) RequestTOMongoDbOption(offset int64) *options.FindOptions
type User ¶
type User struct { ID primitive.ObjectID `bson:"_id" json:"_id,omitempty"` UserName string `json:"userName,omitempty" bson:"userName" validate:"omitempty,min=5,max=25"` Password string `json:"password,omitempty" bson:"password"` Email string `json:"email,omitempty" bson:"email" validate:"required,email"` }
type UserLoginResponse ¶
type UserLoginResponse struct { Token string `json:"token"` RefreshToken string `json:"refreshToken"` UserName string `json:"userName,omitempty"` Email string `json:"email,omitempty"` }
func UserLoginResponseFromUser ¶
func UserLoginResponseFromUser(user *User) *UserLoginResponse
Click to show internal directories.
Click to hide internal directories.