dto

package
v0.0.0-...-23da319 Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PasswordChangeRequest

type PasswordChangeRequest struct {
	OldPassword string `json:"old_password" binding:"required,min=8"`
	NewPassword string `json:"new_password" binding:"required,min=8"`
}

type UserLoginRequest

type UserLoginRequest struct {
	Email    string `json:"email" binding:"required,email"`
	Password string `json:"password" binding:"required,min=8"`
}

type UserLoginRequestResponse

type UserLoginRequestResponse struct {
	ID            string    `json:"id"`
	Name          string    `json:"name"`
	Surname       string    `json:"surname"`
	Email         string    `json:"email"`
	PhoneNumber   string    `json:"phone_number"`
	Role          string    `json:"role"`
	CreatedAt     time.Time `json:"created_at"`
	AccessToken   string    `json:"access_token"`
	AccessPublic  string    `json:"access_public"`
	RefreshToken  string    `json:"refresh_token"`
	RefreshPublic string    `json:"refresh_public"`
	ExpiredAt     time.Time `json:"expired_at"`
}

func NewUserLoginRequestResponse

func NewUserLoginRequestResponse(session *aggregate.Session) *UserLoginRequestResponse

type UserRegisterRequest

type UserRegisterRequest struct {
	Email       string `json:"email" binding:"required,email"`
	Password    string `json:"password" binding:"required,min=8"`
	Name        string `json:"name" binding:"required"`
	Surname     string `json:"surname" binding:"required"`
	PhoneNumber string `json:"phone_number"`
}

Jump to

Keyboard shortcuts

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