Skip to content

Commit

Permalink
Make language enum.
Browse files Browse the repository at this point in the history
  • Loading branch information
nikki-dag committed Jul 10, 2024
1 parent 057e869 commit e4f2178
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion service/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ const (

EchoOperationName = "nexus-bug-bash-echo-operation"
HelloOperationName = "nexus-bug-bash-hello-operation"

EN Language = "en"
FR Language = "fr"
DE Language = "de"
ES Language = "es"
TR Language = "tr"
)

type (
Expand All @@ -13,9 +19,10 @@ type (
}
EchoOutput EchoInput

Language string
HelloInput struct {
Name string
Language string
Language Language
}
HelloOutput struct {
Message string
Expand Down

0 comments on commit e4f2178

Please sign in to comment.