Annotate some models

This commit is contained in:
andrea 2023-07-12 09:30:56 +02:00
parent 1b108fd23c
commit a5acdce647
3 changed files with 5 additions and 5 deletions

View file

@ -1,6 +1,6 @@
package models
type Answer struct {
ID string
Text string
ID string `json:"id"`
Text string `json:"text"`
}

View file

@ -1,7 +1,7 @@
package models
type Question struct {
ID string
Text string
AnswerIDs []string
ID string `json:"id"`
Text string `json:"text"`
AnswerIDs []string `json:"answer_ids"`
}