dto

package
v0.0.0-...-35c4631 Latest Latest
Warning

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

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

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

type ChangePasswordRequest

type ChangePasswordRequest struct {
	OldPassword             string `json:"oldPassword"`
	NewPassword             string `json:"newPassword"`
	ConfirmationNewPassword string `json:"confirmationNewPassword"`
}

type CreateTodoRequest

type CreateTodoRequest struct {
	Title       string `json:"title"`
	Description string `json:"description"`
}

type GeneralTodoResponse

type GeneralTodoResponse struct {
	ID          string    `json:"id"`
	Title       string    `json:"title"`
	Description string    `json:"description"`
	IsCompleted bool      `json:"is_completed"`
	UpdatedAt   time.Time `json:"updated_at"`
}

type RegistrationRequest

type RegistrationRequest struct {
	AuthRequest
	ConfirmationPassword string `json:"confirmationPassword"`
}

type UpdateTodoResponse

type UpdateTodoResponse struct {
	IsCompleted bool      `json:"is_completed"`
	UpdatedAt   time.Time `json:"updated_at"`
}

Jump to

Keyboard shortcuts

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