Added properties to configure country names

This commit is contained in:
2023-10-26 20:54:50 +02:00
parent 37ce8e1511
commit f7de1c2825
2 changed files with 10 additions and 0 deletions
@@ -0,0 +1,6 @@
package de.twomartens.timetable.model.common
enum class LanguageCode {
de,
en
}
@@ -1,5 +1,8 @@
package de.twomartens.timetable.property
import de.twomartens.timetable.model.common.CountryCode
import de.twomartens.timetable.model.common.LanguageCode
import de.twomartens.timetable.types.NonEmptyString
import io.swagger.v3.oas.annotations.media.Schema
import org.springframework.boot.context.properties.ConfigurationProperties
import org.springframework.cloud.context.config.annotation.RefreshScope
@@ -9,4 +12,5 @@ import org.springframework.cloud.context.config.annotation.RefreshScope
@Schema(description = "Properties, to configure this Application")
class ServiceProperties {
lateinit var greeting: String
lateinit var countryNames: Map<CountryCode, Map<LanguageCode, NonEmptyString>>
}