mirror of
https://github.com/2martens/tsw-timetable.git
synced 2026-10-17 07:57:55 +02:00
Added properties to configure country names
This commit is contained in:
@@ -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>>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user