-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: apply waiting queue * feat: change check logic * test: add test * chore: add env * docs: update open-api.yaml --------- Co-authored-by: Git Actions <no-reply@github.com>
- Loading branch information
1 parent
5084bca
commit 7c6574f
Showing
12 changed files
with
205 additions
and
108 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
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
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: 18 additions & 0 deletions
18
src/main/kotlin/com/group4/ticketingservice/dto/QueueDTO.kt
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,18 @@ | ||
package com.group4.ticketingservice.dto | ||
|
||
class QueueResponseDTO( | ||
val status: Boolean = false, | ||
val message: String = "", | ||
val data: TicketInfo? = null | ||
) | ||
|
||
class TicketInfo( | ||
var eventId: String = "", | ||
var userId: String = "", | ||
var isWaiting: Boolean = true, | ||
var offset: Int = 0 | ||
) | ||
data class TicketRequest( | ||
val eventId: Int, | ||
val userId: Int | ||
) |
17 changes: 16 additions & 1 deletion
17
src/main/kotlin/com/group4/ticketingservice/service/ReservationService.kt
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
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 |
---|---|---|
|
@@ -43,3 +43,8 @@ management: | |
include: prometheus | ||
prometheus: | ||
enabled: 'true' | ||
|
||
ticketing: | ||
queue: | ||
server: | ||
url: ${QUEUE_SERVER_URL} |
Oops, something went wrong.