-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
386 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/main/java/com/eventostec/api/domain/event/EventAddressProjection.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.eventostec.api.domain.event; | ||
|
||
import java.util.Date; | ||
import java.util.UUID; | ||
|
||
public interface EventAddressProjection { | ||
|
||
UUID getId(); | ||
String getTitle(); | ||
String getDescription(); | ||
Date getDate(); | ||
String getImgUrl(); | ||
String getEventUrl(); | ||
Boolean getRemote(); | ||
String getCity(); | ||
String getUf(); | ||
} |
6 changes: 5 additions & 1 deletion
6
src/main/java/com/eventostec/api/domain/event/EventResponseDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
package com.eventostec.api.domain.event; | ||
|
||
import com.eventostec.api.domain.address.Address; | ||
import com.eventostec.api.domain.coupon.CouponResponseDTO; | ||
import org.springframework.web.multipart.MultipartFile; | ||
|
||
import java.util.Date; | ||
import java.util.List; | ||
import java.util.UUID; | ||
|
||
public record EventResponseDTO(UUID id, String title, | ||
String description, | ||
Date date, String city, | ||
String state, Boolean remote, | ||
String eventUrl, String imgUrl) { | ||
String eventUrl, String imgUrl | ||
|
||
) { | ||
|
||
} |
19 changes: 19 additions & 0 deletions
19
src/main/java/com/eventostec/api/domain/event/EventResponseWithCouponsDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.eventostec.api.domain.event; | ||
|
||
import com.eventostec.api.domain.coupon.CouponResponseDTO; | ||
|
||
import java.util.Date; | ||
import java.util.List; | ||
import java.util.UUID; | ||
|
||
public record EventResponseWithCouponsDTO(UUID id, String title, | ||
String description, | ||
Date date, String city, | ||
String state, | ||
String imgUrl, | ||
String eventUrl, | ||
List<CouponResponseDTO> coupons | ||
|
||
) { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.