-
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.
Feature/add new endpoint to resolve all images for a specific channel (…
- Loading branch information
1 parent
ae722d0
commit 86bf534
Showing
10 changed files
with
244 additions
and
2 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
src/main/java/de/app/fivegla/controller/dto/request/GetAllImagesForTransactionRequest.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,32 @@ | ||
package de.app.fivegla.controller.dto.request; | ||
|
||
import de.app.fivegla.persistence.entity.enums.ImageChannel; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import jakarta.validation.constraints.NotBlank; | ||
import jakarta.validation.constraints.NotNull; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
/** | ||
* Request to get all images for a transaction. | ||
*/ | ||
@Getter | ||
@Setter | ||
@Schema(description = "Request to get all images for a transaction.") | ||
public class GetAllImagesForTransactionRequest { | ||
|
||
/** | ||
* The transaction id. | ||
*/ | ||
@NotBlank | ||
@Schema(description = "The transaction id.") | ||
private String transactionId; | ||
|
||
/** | ||
* The channel of the image. | ||
*/ | ||
@NotNull | ||
@Schema(description = "The channel of the image.") | ||
private ImageChannel channel; | ||
|
||
} |
39 changes: 39 additions & 0 deletions
39
src/main/java/de/app/fivegla/controller/dto/response/AllTransactionsForTenantResponse.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,39 @@ | ||
package de.app.fivegla.controller.dto.response; | ||
|
||
import de.app.fivegla.api.Response; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
import java.time.Instant; | ||
import java.util.Map; | ||
|
||
/** | ||
* Response class for retrieving all transactions for a tenant. | ||
* Extends the base Response class. | ||
*/ | ||
@Getter | ||
@Setter | ||
@Builder | ||
@Schema(description = "Response to get all transactions for a tenant.") | ||
public class AllTransactionsForTenantResponse extends Response { | ||
|
||
/** | ||
* The start of the search interval. | ||
*/ | ||
@Schema(description = "The start of the search interval.") | ||
private Instant from; | ||
|
||
/** | ||
* The end of the search interval. | ||
*/ | ||
@Schema(description = "The end of the search interval.") | ||
private Instant to; | ||
|
||
/** | ||
* The transaction id with the first image timestamp. | ||
*/ | ||
@Schema(description = "The transaction id with the first image timestamp.") | ||
private Map<String, Instant> transactionIdWithTheFirstImageTimestamp; | ||
} |
25 changes: 25 additions & 0 deletions
25
src/main/java/de/app/fivegla/controller/dto/response/GetAllImagesForTransactionResponse.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,25 @@ | ||
package de.app.fivegla.controller.dto.response; | ||
|
||
import de.app.fivegla.api.Response; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* Response to get all images for a transaction. | ||
*/ | ||
@Getter | ||
@Setter | ||
@Builder | ||
@Schema(description = "Response to get all images for a transaction.") | ||
public class GetAllImagesForTransactionResponse extends Response { | ||
|
||
/** | ||
* The images as base64 encoded data. | ||
*/ | ||
@Schema(description = "The images as base64 encoded data.") | ||
private List<String> imagesAsBase64EncodedData; | ||
} |
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
13 changes: 13 additions & 0 deletions
13
.../app/fivegla/integration/imageprocessing/dto/TransactionIdWithTheFirstImageTimestamp.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,13 @@ | ||
package de.app.fivegla.integration.imageprocessing.dto; | ||
|
||
|
||
import java.time.Instant; | ||
|
||
/** | ||
* The transaction id with the timestamp of the first image. | ||
* | ||
* @param transactionId The transaction id. | ||
* @param timestampOfTheFirstImage The timestamp of the first image. | ||
*/ | ||
public record TransactionIdWithTheFirstImageTimestamp(String transactionId, Instant timestampOfTheFirstImage) { | ||
} |
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