Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoginRequest ¶
type LoginResponse ¶
type Pagination ¶
type ProfileRequest ¶
type ProfileRequest struct {
Page int `query:"page"`
}
type ProfileResponse ¶
type ProfileResponse struct { Profiles []*Profile `json:"profiles"` Pagination Pagination `json:"pagination"` }
type PurchasePremium ¶
type PurchasePremium struct {
PackageType string `json:"package_type" validate:"required,oneof=no_swipe_quota verified_label"`
}
type SignupRequest ¶
type SignupRequest struct { PhoneNumber string `form:"phone_number" validate:"required,min=12,max=15,phone_number"` Password string `form:"password" validate:"required,min=6,max=64,uppercase,digit,special"` Email string `form:"email" validate:"required,email"` Name string `form:"name" validate:"required,min=3,max=30"` DOB string `form:"dob" validate:"required,dob"` Gender string `form:"gender" validate:"required,oneof=Male Female"` Photos []*File `form:"photos" validate:"required"` }
type SignupResponse ¶
type SignupResponse struct {
ID string `json:"id"`
}
type SwipeRequest ¶
type User ¶
type User struct { ID string `bson:"_id" json:"id"` PhoneNumber string `bson:"phone_number" json:"phone_number"` Password []byte `bson:"password" json:"-"` Email string `bson:"email" json:"email"` Name string `bson:"name" json:"name"` DOB string `bson:"dob" json:"dob"` Age int `bson:"age" json:"age"` Gender string `bson:"gender" json:"gender"` Photos []*File `bson:"photos" json:"photos"` Feature Feature `bson:"feature,omitempty" json:"feature"` CreatedAt time.Time `bson:"created_at" json:"created_at"` UpdatedAt time.Time `bson:"updated_at" json:"updated_at"` }
type UserRecommendation ¶
Click to show internal directories.
Click to hide internal directories.