Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DriverRegRequest ¶
type EmailVerifyRequest ¶
type ExistanceRequest ¶
type ExistanceRequest struct { Phone string `json:"phone"` Email string `json:"email"` License string `json:"license"` }
func (*ExistanceRequest) Check ¶
func (r *ExistanceRequest) Check() map[string]bool
type ForgetPasswordRequest ¶
type ForgetPasswordRequest struct { Phone string `json:"phone" valid:"numeric,stringlength(8|11),optional"` Email string `json:"email" valid:"email,optional"` Token string `json:"token" valid:"required"` Password string `json:"password" valid:"stringlength(6|32)"` }
func (*ForgetPasswordRequest) Verify ¶
func (r *ForgetPasswordRequest) Verify() (err error)
type LoginRequest ¶
type LoginRequest struct { Phone string `json:"phone"` Email string `json:"email"` License string `json:"license"` Password string `json:"password"` }
func (*LoginRequest) PasswordLogin ¶
func (r *LoginRequest) PasswordLogin() (*model.User, error)
type RefreshTokenRequest ¶
type RefreshTokenRequest struct {
Token string `json:"token"`
}
type TransportOperatorRegRequest ¶
type TransportOperatorRegRequest struct { Id primitive.ObjectID `json:"id"` LicenseNumber string `json:"licenseNumber"` Name string `json:"name"` }
func (*TransportOperatorRegRequest) Reg ¶
func (r *TransportOperatorRegRequest) Reg() (*model.TransportOperator, error)
type UserRegRequest ¶
type UserUpdateRequest ¶
type UserUpdateRequest struct {
Password string `json:"password" valid:"stringlength(6|32)"`
}
type VehicleCreateRequest ¶
type VerificationRequest ¶
func (*VerificationRequest) Send ¶
func (r *VerificationRequest) Send() (err error)
Click to show internal directories.
Click to hide internal directories.