dtos

package
v0.0.0-...-e796f14 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfirmEmailRequestDto

type ConfirmEmailRequestDto struct {
	Email string `json:"email" validate:"required"`
	Code  string `json:"code" validate:"required"`
}

type ConfirmPhoneRequestDto

type ConfirmPhoneRequestDto struct {
	Phone string `json:"phone" validate:"required"`
	Code  string `json:"code" validate:"required"`
}

type LoginRequestDto

type LoginRequestDto struct {
	Login    string `json:"login" validate:"required,lte=255"`
	Password string `json:"password" validate:"required,lte=255"`
}

type LoginResponseDto

type LoginResponseDto struct {
	UserId       string `json:"user_id"`
	AccessToken  string `json:"access_token"`
	RefreshToken string `json:"refresh_token"`
}

type OTPGenerateRequestDto

type OTPGenerateRequestDto struct {
	Phone string `json:"phone" validate:"required"`
}

OTPGenerateRequestDto - OTP generation request

type OTPGenerateResponseDto

type OTPGenerateResponseDto struct {
	Identity string `json:"identity_type"`
	Code     string `json:"code"`
}

type OTPLoginRequestDto

type OTPLoginRequestDto struct {
	Phone string `json:"phone" validate:"required"`
	Code  string `json:"code" validate:"required"`
}

type RegistrationRequestDto

type RegistrationRequestDto struct {
	Email     string `json:"email" validate:"required,email,lte=255"`
	Phone     string `json:"phone" validate:"required,lte=255"`
	Password  string `json:"password" validate:"required,lte=255"`
	FirstName string `json:"first_name,omitempty" validate:"lte=255"`
	LastName  string `json:"last_name,omitempty" validate:"lte=255"`
}

type TokenPairResponseDto

type TokenPairResponseDto struct {
	UserID       string `json:"user_id"`
	AccessToken  string `json:"access_token"`
	RefreshToken string `json:"refresh_token"`
}

Jump to

Keyboard shortcuts

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