models

package
v0.0.0-...-9eb7758 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 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 CheckEmailAvailabilityRequest

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

type CheckEmailAvailabilityResponse

type CheckEmailAvailabilityResponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
	Exists  bool   `json:"exists"`
}

type ErrorResponse

type ErrorResponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

type ForgotPasswordRequest

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

type ForgotPasswordResponse

type ForgotPasswordResponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

type MFADisableRequest

type MFADisableRequest struct {
	UserId string `json:"user_id" validate:"required"`
}

type MFADisableResponse

type MFADisableResponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

type MFAEnableRequest

type MFAEnableRequest struct {
	UserId string `json:"user_id" validate:"required"`
}

type MFAEnableResponse

type MFAEnableResponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

type MFAGenerateRequest

type MFAGenerateRequest struct {
	UserId string `json:"user_id"`
}

type MFAGenerateResponse

type MFAGenerateResponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
	Token   string `json:"token"`
	QRCode  string `json:"qr_code"`
}

type MFAVerifyRequest

type MFAVerifyRequest struct {
	UserId string `json:"user_id" validate:"required"`
	Code   string `json:"code" validate:"required"`
}

type MFAVerifyResponse

type MFAVerifyResponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

type MeResponse

type MeResponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
	User    UserMe `json:"user"`
}

type RefreshTokenResponse

type RefreshTokenResponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

type ResetPasswordRequest

type ResetPasswordRequest struct {
	Token    string `json:"token" validate:"required"`
	Password string `json:"password" validate:"required,min=8,max=32"`
}

type ResetPasswordResponse

type ResetPasswordResponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

type SendVerificationEmailRequest

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

type SendVerificationEmailResponse

type SendVerificationEmailResponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

type SignInCallbackResponse

type SignInCallbackResponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

type SignInRequest

type SignInRequest struct {
	Email    string `json:"email" validate:"required,email"`
	Password string `json:"password" validate:"required,min=8,max=32"`
}

type SignInResponse

type SignInResponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

type SignInWithOAuthResponse

type SignInWithOAuthResponse struct {
	Code        int    `json:"code"`
	Message     string `json:"message"`
	RedirectUrl string `json:"redirect_url"`
}

type SignOutResponse

type SignOutResponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

type SignUpRequest

type SignUpRequest struct {
	Name     string `json:"name" validate:"required"`
	Email    string `json:"email" validate:"required,email"`
	Password string `json:"password" validate:"required,min=8,max=32"`
}

type SignUpResponse

type SignUpResponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

type UserMe

type UserMe struct {
	Id     string `json:"id"`
	Email  string `json:"email"`
	Name   string `json:"name"`
	Avatar string `json:"avatar"`
}

type VerifyEmailRequest

type VerifyEmailRequest struct {
	Email string `json:"email" validate:"required,email"`
	Token string `json:"token"`
}

type VerifyEmailResponse

type VerifyEmailResponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

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