From 88fdfaf0a31c8c823124e26350ae7ab75d91a6d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Santiago=20Rojas=20Calder=C3=B3n?= Date: Tue, 24 Sep 2024 18:13:15 -0500 Subject: [PATCH 01/12] =?UTF-8?q?=E2=9C=A8=20Generated=20file=20stucture?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../eventsservice/dtos/EventDto.java | 28 +++++++++ .../dtos/EventParticipantDto.java | 15 +++++ .../dtos/EventParticipantIdDto.java | 14 +++++ .../eventsservice/dtos/LabelDto.java | 16 +++++ .../eventsservice/models/Event.java | 58 +++++++++++++++++++ .../models/EventParticipant.java | 21 +++++++ .../models/EventParticipantId.java | 37 ++++++++++++ .../eventsservice/models/Label.java | 27 +++++++++ .../repositories/EventRepository.java | 7 +++ .../repositories/LabelRepository.java | 7 +++ .../repositories/LabelRepository1.java | 7 +++ 11 files changed, 237 insertions(+) create mode 100644 src/main/java/co/allconnected/fussiontech/eventsservice/dtos/EventDto.java create mode 100644 src/main/java/co/allconnected/fussiontech/eventsservice/dtos/EventParticipantDto.java create mode 100644 src/main/java/co/allconnected/fussiontech/eventsservice/dtos/EventParticipantIdDto.java create mode 100644 src/main/java/co/allconnected/fussiontech/eventsservice/dtos/LabelDto.java create mode 100644 src/main/java/co/allconnected/fussiontech/eventsservice/models/Event.java create mode 100644 src/main/java/co/allconnected/fussiontech/eventsservice/models/EventParticipant.java create mode 100644 src/main/java/co/allconnected/fussiontech/eventsservice/models/EventParticipantId.java create mode 100644 src/main/java/co/allconnected/fussiontech/eventsservice/models/Label.java create mode 100644 src/main/java/co/allconnected/fussiontech/eventsservice/repositories/EventRepository.java create mode 100644 src/main/java/co/allconnected/fussiontech/eventsservice/repositories/LabelRepository.java create mode 100644 src/main/java/co/allconnected/fussiontech/eventsservice/repositories/LabelRepository1.java diff --git a/src/main/java/co/allconnected/fussiontech/eventsservice/dtos/EventDto.java b/src/main/java/co/allconnected/fussiontech/eventsservice/dtos/EventDto.java new file mode 100644 index 0000000..fd4d4f7 --- /dev/null +++ b/src/main/java/co/allconnected/fussiontech/eventsservice/dtos/EventDto.java @@ -0,0 +1,28 @@ +package co.allconnected.fussiontech.eventsservice.dtos; + +import co.allconnected.fussiontech.eventsservice.models.EventParticipant; +import co.allconnected.fussiontech.eventsservice.models.Label; +import lombok.Value; + +import java.io.Serializable; +import java.time.Instant; +import java.util.Set; +import java.util.UUID; + +/** + * DTO for {@link co.allconnected.fussiontech.eventsservice.models.Event} + */ +@Value +public class EventDto implements Serializable { + Integer id; + UUID idBusiness; + String name; + String description; + String photoUrl; + Integer capacity; + Instant date; + Boolean active; + Double price; + Set