dtos

package
v0.0.0-...-7980018 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateEventDTO

func ValidateEventDTO(eventDTO *EventDTO) error

Types

type EventDTO

type EventDTO struct {
	Title       string `json:"title" validate:"required"`
	Description string `json:"description" validate:"required"`
	MentorID    string `json:"mentor_id" validate:"required"`
	StartDate   string `json:"start_date" validate:"required"`
	EndDate     string `json:"end_date" validate:"required"`
}

type ParticipantDTO

type ParticipantDTO struct {
	ParticipantId uuid.UUID `json:"participantId" binding:"required"`
	EventId       uuid.UUID `-`
}

Jump to

Keyboard shortcuts

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