model

package
v0.0.0-...-855b128 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 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 ErrorResponse

type ErrorResponse struct {
	Error string `json:"error"`
}

ErrorResponse representa uma resposta de erro padrão da API.

type ForbiddenResponse

type ForbiddenResponse struct {
	Message string `json:"Invalid username or password"`
}

ForbiddenResponse representa uma falha na autenticação.

type NotFoundResponse

type NotFoundResponse struct {
	Message string `json:"message"`
}

NotFoundResponse representa uma resposta para recursos não encontrados.

type User

type User struct {
	ID       string `json:"id" dynamodbav:"ID"`
	Name     string `json:"name" dynamodbav:"Name"`
	Email    string `json:"email" dynamodbav:"Email"`
	Username string `json:"username" dynamodbav:"Username"`
	Password string `json:"password" dynamodbav:"Password"`
}

User representa a estrutura dos dados do usuário

Jump to

Keyboard shortcuts

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