dto

package
v0.0.0-...-ff4c41b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthData

type AuthData struct {
	Email  string   `json:"email"`
	Scopes []string `json:"scopes"`
}

type AuthInput

type AuthInput struct {
	Token     string
	SecretKey []byte
}

type CompleteRegistrationInput

type CompleteRegistrationInput struct {
	FirstName  string `json:"first_name"`
	MiddleName string `json:"middle_name"`
	LastName   string `json:"last_name"`
	Email      string `json:"email"`
	Password   string `json:"password"`
	OTP        string `json:"otp"`
}

type OtpInput

type OtpInput struct {
	Email string `json:"email"`
}

type OtpResult

type OtpResult struct {
	Email string `json:"email"`
	OTP   []byte `json:"otp"`
}

type PasswordResetCodeResult

type PasswordResetCodeResult struct {
	Email string `json:"email"`
	Code  string `json:"code"`
}

type PasswordResetInput

type PasswordResetInput struct {
	Email    string `json:"email"`
	Password string `json:"password"`
	Code     string `json:"code"`
}

type PasswordResult

type PasswordResult struct {
	Email string `json:"email"`
}

type Role

type Role struct {
	ID     int      `json:"id"`
	Name   string   `json:"name"`
	Scopes []string `json:"scopes"`
}

type SignInInput

type SignInInput struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

type SignInResult

type SignInResult struct {
	AccessToken string   `json:"access_token"`
	AuthData    AuthData `json:"client_info"`
}

type Token

type Token entities.Token

Jump to

Keyboard shortcuts

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