generated from ministryofjustice/hmpps-template-kotlin
-
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.
Convert request params to DTO and improve logging (#132)
* add more logging * add logger * Convert from request params to dto for easier usage
- Loading branch information
1 parent
26886a3
commit eda6d6a
Showing
2 changed files
with
47 additions
and
57 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
27 changes: 27 additions & 0 deletions
27
...ital/hmpps/hmppsprisonvisitstestinghelperapi/dto/admin/CreateSessionTemplateRequestDto.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,27 @@ | ||
package uk.gov.justice.digital.hmpps.hmppsprisonvisitstestinghelperapi.dto.admin | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema | ||
import java.time.LocalDateTime | ||
|
||
data class CreateSessionTemplateRequestDto( | ||
@Schema(description = "prison code", example = "MDI", required = true) | ||
val prisonCode: String, | ||
@Schema(description = "sessionStartDateTime", example = "2007-12-03T10:15:30", required = false) | ||
val sessionStartDateTime: LocalDateTime = LocalDateTime.now().plusDays(2), | ||
@Schema(description = "weeklyFrequency", example = "1", required = false) | ||
val weeklyFrequency: Int = 1, | ||
@Schema(description = "closedCapacity", example = "1", required = false) | ||
val closedCapacity: Int = 1, | ||
@Schema(description = "openCapacity", example = "1", required = false) | ||
val openCapacity: Int = 1, | ||
@Schema(description = "Location level string", example = "A-1-3-007", required = false) | ||
val locationLevels: String?, | ||
@Schema(description = "incentive string", example = "ENHANCED", required = false) | ||
val incentive: String?, | ||
@Schema(description = "category string", example = "A_EXCEPTIONAL", required = false) | ||
val category: String?, | ||
@Schema(description = "disable all other sessions for slot and prison", example = "false", required = false) | ||
val disableAllOtherSessionsForSlotAndPrison: Boolean = false, | ||
@Schema(description = "Custom session name - if needed", example = "Saturday Mornings", required = false) | ||
val sessionName: String? = null, | ||
) |