dto

package
v0.0.0-...-77ca5db Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangePasswordReq

type ChangePasswordReq struct {
	OldPassword        string `json:"old_password" validate:"required"`
	NewPassword        string `json:"new_password" validate:"required,min=8"`
	NewPasswordConfirm string `json:"new_password_confirm" validate:"required,min=8,eqfield=NewPassword"`
}

type DriverRegistrationsReq

type DriverRegistrationsReq struct {
	FirstName            string `json:"first_name" form:"first_name" validate:"required"`
	LastName             string `json:"last_name" form:"last_name" `
	Email                string `json:"email" form:"email" validate:"required,email"`
	PhoneNumber          string `json:"phone_number" form:"phone_number"`
	DateOfBirth          string `json:"date_of_birth" form:"date_of_birth"`
	Age                  int    `json:"age" form:"age"`
	LicenseNumber        string `json:"license_number" form:"license_number"`
	ProfilePicture       string `json:"profile_picture" form:"profile_picture"`
	Password             string `json:"password" form:"password" validate:"required,min=8"`
	PasswordConfirmation string `json:"password_confirmation" form:"password_confirmation" validate:"required,eqfield=Password"`
}

type ForgotPasswordReq

type ForgotPasswordReq struct {
	Email string `json:"email" validate:"required,email"`
}

type GovRegistrationReq

type GovRegistrationReq struct {
	FirstName            string `json:"first_name" form:"first_name" validate:"required"`
	LastName             string `json:"last_name" form:"last_name" validate:"required"`
	Email                string `json:"email" form:"email" validate:"required,email"`
	PhoneNumber          string `json:"phone_number" form:"phone_number" validate:"required"`
	NIP                  string `json:"nip" form:"nip" validate:"required"`
	Password             string `json:"password" form:"password" validate:"required"`
	PasswordConfirmation string `json:"password_confirmation" form:"password_confirmation" validate:"required,eqfield=Password"`
	ProfilePicture       string `json:"profile_picture" form:"profile_picture" validate:"required"`
}

type OwnerRegistrationsReq

type OwnerRegistrationsReq struct {
	FirstName            string `json:"first_name"`
	LastName             string `json:"last_name"`
	Email                string `json:"email" validate:"required,email"`
	PhoneNumber          string `json:"phone_number"`
	NIK                  string `json:"nik"`
	ProfilePicture       string `json:"profile_picture" form:"profile_picture" form:"profile_picture"`
	Password             string `json:"password" validate:"required,min=8"`
	PasswordConfirmation string `json:"password_confirmation" validate:"required,eqfield=Password"`
}

type ResetPasswordReq

type ResetPasswordReq struct {
	Password             string `json:"password" validate:"required,min=8"`
	PasswordConfirmation string `json:"password_confirmation" validate:"required,eqfield=Password"`
}

type UserLoginReq

type UserLoginReq struct {
	Email    string `json:"email" validate:"required,email"`
	Password string `json:"password" validate:"required"`
}

type UserRegistrationsReq

type UserRegistrationsReq struct {
	Email                string `json:"email" validate:"required,email" form:"email"`
	Password             string `json:"password" form:"password" validate:"required,min=8"`
	PasswordConfirmation string `json:"password_confirmation" form:"password_confirmation" validate:"required,eqfield=Password"`
}

type UserRegistrationsResp

type UserRegistrationsResp struct {
	ID          string `json:"id"`
	FirstName   string `json:"first_name"`
	LastName    string `json:"last_name"`
	Email       string `json:"email"`
	PhoneNumber string `json:"phone_number"`
	Role        string `json:"role"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL