Annotate some models
This commit is contained in:
parent
1b108fd23c
commit
a5acdce647
3 changed files with 5 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
|||
package models
|
||||
|
||||
type Answer struct {
|
||||
ID string
|
||||
Text string
|
||||
ID string `json:"id"`
|
||||
Text string `json:"text"`
|
||||
}
|
||||
|
|
|
@ -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"`
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue