-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
7431d73
commit 559ed4b
Showing
28 changed files
with
228 additions
and
151 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
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
18 changes: 0 additions & 18 deletions
18
app/api/show-api/src/main/java/com/example/mq/MessagePublisher.java
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
app/api/show-api/src/main/java/com/example/mq/message/ArtistSubscriptionServiceMessage.java
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
app/api/show-api/src/main/java/com/example/mq/message/GenreSubscriptionServiceMessage.java
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
app/api/show-api/src/main/java/com/example/publish/MessagePublisher.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.example.publish; | ||
|
||
import com.example.publish.message.ArtistSubscriptionServiceMessage; | ||
import com.example.publish.message.GenreSubscriptionServiceMessage; | ||
import com.example.publish.message.ShowRelationArtistAndGenreServiceMessage; | ||
import com.example.publish.message.TicketingReservationServiceMessage; | ||
|
||
public interface MessagePublisher { | ||
|
||
void publishShow(String topic, ShowRelationArtistAndGenreServiceMessage message); | ||
|
||
void publishArtistSubscription(String topic, ArtistSubscriptionServiceMessage message); | ||
|
||
void publishGenreSubscription(String topic, GenreSubscriptionServiceMessage message); | ||
|
||
void publishTicketingReservation(String topic, TicketingReservationServiceMessage message); | ||
} |
22 changes: 22 additions & 0 deletions
22
.../show-api/src/main/java/com/example/publish/message/ArtistSubscriptionServiceMessage.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,22 @@ | ||
package com.example.publish.message; | ||
|
||
import java.util.List; | ||
import java.util.UUID; | ||
import lombok.Builder; | ||
|
||
@Builder | ||
public record ArtistSubscriptionServiceMessage( | ||
String userFcmToken, | ||
List<UUID> artistIds | ||
) { | ||
|
||
public static ArtistSubscriptionServiceMessage from( | ||
String userFcmToken, | ||
List<UUID> artistIds | ||
) { | ||
return ArtistSubscriptionServiceMessage.builder() | ||
.userFcmToken(userFcmToken) | ||
.artistIds(artistIds) | ||
.build(); | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...i/show-api/src/main/java/com/example/publish/message/GenreSubscriptionServiceMessage.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,22 @@ | ||
package com.example.publish.message; | ||
|
||
import java.util.List; | ||
import java.util.UUID; | ||
import lombok.Builder; | ||
|
||
@Builder | ||
public record GenreSubscriptionServiceMessage( | ||
String userFcmToken, | ||
List<UUID> genreIds | ||
) { | ||
|
||
public static GenreSubscriptionServiceMessage from( | ||
String userFcmToken, | ||
List<UUID> genreIds | ||
) { | ||
return GenreSubscriptionServiceMessage.builder() | ||
.userFcmToken(userFcmToken) | ||
.genreIds(genreIds) | ||
.build(); | ||
} | ||
} |
5 changes: 2 additions & 3 deletions
5
...e/TicketingReservationServiceMessage.java → ...sh/message/ReserveShowServiceMessage.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
2 changes: 1 addition & 1 deletion
2
...RelationArtistAndGenreServiceMessage.java → ...RelationArtistAndGenreServiceMessage.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
10 changes: 10 additions & 0 deletions
10
...how-api/src/main/java/com/example/publish/message/TicketingReservationServiceMessage.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,10 @@ | ||
package com.example.publish.message; | ||
|
||
import java.util.List; | ||
|
||
public record TicketingReservationServiceMessage( | ||
String userFcmToken, | ||
List<ReserveShowServiceMessage> reserveShows | ||
) { | ||
|
||
} |
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.