dtos

package
v0.0.0-...-a20cc02 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: GPL-3.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 AddCube

type AddCube struct {
	Name  string `form:"name"`
	Brand string `form:"brand"`
	Shape string `form:"shape"`
}

type AddCubeToCollection

type AddCubeToCollection struct {
	CubeID int64 `json:"cube_id"`
}

type DeleteCube

type DeleteCube struct {
	ID int64 `json:"cube_id"`
}

type LoginUser

type LoginUser struct {
	Email    string `form:"email" validate:"required,email"`
	Password string `form:"password" validate:"required"`
}

type RegisterUser

type RegisterUser struct {
	Email    string `form:"email" validate:"required,email"`
	Password string `form:"password" validate:"required,min=8"`
	Name     string `form:"name"`
}

type RemoveCubeFromCollection

type RemoveCubeFromCollection struct {
	CubeID int64 `query:"id"` //only works with GET or DELETE requests
}

Jump to

Keyboard shortcuts

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