attendantDTO

package
v0.0.0-...-e9ec6a3 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 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 AttendantQueryDTO

type AttendantQueryDTO struct {
	appDto.PaginationDTO
	TeamID string `validate:"omitempty,uuid" query:"team_id" pg:"operation=equal"`
	Name   string `validate:"omitempty" query:"name" pg:"operation=like"`
	CPF    string `validate:"omitempty,cpf" query:"cpf" pg:"operation=like"`
}

type CreateAttendantDTO

type CreateAttendantDTO struct {
	CPF       string `validate:"required,cpf" json:"cpf"`
	Name      string `validate:"required,min=10,max=50" json:"name"`
	Email     string `validate:"required,email,max=50" json:"email"`
	Password  string `validate:"required,min=8" json:"password"`
	TeamId    string `validate:"required,uuid" json:"team_id"`
	BirthDate string `validate:"required,birthdate,notfuturedate" json:"birth_date"`
}

type CreateAttendantEvaluationDTO

type CreateAttendantEvaluationDTO struct {
	Score       uint8  `validate:"required,number,min=0,max=5" json:"score"`
	Description string `validate:"required,min=10,max=300" json:"description"`
	AvaluatedID string `validate:"omitempty,uuid" json:"avaluated_id"`
}

type QueryAttendantEvaluationDTO

type QueryAttendantEvaluationDTO struct {
	appDto.PaginationDTO
	AvaluatedID string `validate:"omitempty,uuid" query:"avaluated_id" pg:"operation=equal"`
	AvaluatorID string `validate:"omitempty,uuid" query:"avaluator_id" pg:"operation=equal"`
}

type UpdateAttendantDTO

type UpdateAttendantDTO struct {
	CPF       string    `validate:"omitempty,cpf" json:"cpf,omitempty"`
	Name      string    `validate:"omitempty,min=10,max=50" json:"name,omitempty"`
	Email     string    `validate:"omitempty,email,max=50" json:"email,omitempty"`
	Password  string    `validate:"omitempty,min=8" json:"Password,omitempty"`
	TeamId    string    `validate:"omitempty,uuid" json:"team_id"`
	BirthDate time.Time `json:"birth_date,omitempty"`
}

type UpdateAttendantEvaluationDTO

type UpdateAttendantEvaluationDTO struct {
	Score       uint8  `validate:"omitempty,number,min=0,max=5" json:"score"`
	Description string `validate:"omitempty,min=10,max=300" json:"description"`
}

Jump to

Keyboard shortcuts

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