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 package models
type Answer struct { type Answer struct {
ID string ID string `json:"id"`
Text string Text string `json:"text"`
} }

View file

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