dto

package
v0.0.0-...-0ea871c Latest Latest
Warning

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

Go to latest
Published: Sep 20, 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 AddRefreshTokenReq

type AddRefreshTokenReq struct {
	Email        string `json:"email" validate:"required,email,min=5,max=100"`
	RefreshToken string `json:"refresh_token" validate:"required,min=50,max=500"`
}

type CreateReq

type CreateReq struct {
	UserId   string `json:"user_id" validate:"required,min=21,max=21"`
	Email    string `json:"email" validate:"required,email,min=5,max=100"`
	FullName string `json:"full_name" validate:"required,min=3,max=100"`
	Password string `json:"password" validate:"required,min=5,max=100"`
}

type SanitizedUserRes

type SanitizedUserRes struct {
	UserId         string    `json:"user_id"`
	Email          string    `json:"email"`
	FullName       string    `json:"full_name"`
	Role           string    `json:"role"`
	PhotoProfileId string    `json:"photo_profile_id"`
	PhotoProfile   string    `json:"photo_profile"`
	Whatsapp       string    `json:"whatsapp"`
	CreatedAt      time.Time `json:"created_at"`
	UpdatedAt      time.Time `json:"updated_at"`
}

type UpdateEmailReq

type UpdateEmailReq struct {
	Email    string `json:"email" validate:"required,email,min=5,max=100"`
	NewEmail string `json:"new_email" validate:"required,email,min=5,max=100"`
	Password string `json:"password" validate:"required,min=5,max=100"`
}

type UpdateEmailRes

type UpdateEmailRes struct {
	Email    string `json:"email" validate:"required,email,min=5,max=100"`
	NewEmail string `json:"new_email" validate:"required,email,min=5,max=100"`
}

type UpdatePasswordReq

type UpdatePasswordReq struct {
	Email       string `json:"email" validate:"required,email,min=5,max=100"`
	Password    string `json:"password" validate:"required,min=5,max=100"`
	NewPassword string `json:"new_password" validate:"required,min=5,max=100"`
}

type UpdatePhotoProfileReq

type UpdatePhotoProfileReq struct {
	Email          string `json:"email" validate:"required,email,min=5,max=100"`
	PhotoProfileId string `json:"new_photo_profile_id" validate:"required,min=10,max=100"`
	PhotoProfile   string `json:"new_photo_profile" validate:"required,min=10,max=500"`
}

type UpdateProfileReq

type UpdateProfileReq struct {
	Email    string `json:"email" validate:"required,email,min=5,max=100"`
	FullName string `json:"full_name" validate:"omitempty,min=3,max=100"`
	Whatsapp string `json:"whatsapp" validate:"omitempty,min=10,max=20"`
	Password string `json:"password" validate:"required,min=5,max=100"`
}

type UpsertReq

type UpsertReq struct {
	UserId       string `json:"user_id" validate:"required,min=21,max=21"`
	Email        string `json:"email" validate:"required,email,min=5,max=100"`
	FullName     string `json:"full_name" validate:"required,min=3,max=100"`
	PhotoProfile string `json:"photo_profile" validate:"required,min=3,max=500"`
	RefreshToken string `json:"refresh_token" validate:"required,min=50,max=500"`
}

type VerifyOtpReq

type VerifyOtpReq struct {
	Email string `json:"email" validate:"required,email,min=5,max=100"`
	Otp   string `json:"otp" validate:"required,max=6"`
}

type VerifyUpdateEmailReq

type VerifyUpdateEmailReq struct {
	Email    string `json:"email" validate:"required,email,min=5,max=100"`
	NewEmail string `json:"new_email" validate:"required,email,min=5,max=100"`
	Otp      string `json:"otp" validate:"required,max=6"`
}

type VerifyUpdateEmailRes

type VerifyUpdateEmailRes struct {
	Data        *SanitizedUserRes
	AccessToken string
}

Jump to

Keyboard shortcuts

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