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
|
package models
|
||||||
|
|
||||||
type Answer struct {
|
type Answer struct {
|
||||||
ID string
|
ID string `json:"id"`
|
||||||
Text string
|
Text string `json:"text"`
|
||||||
}
|
}
|
||||||
|
|
|
@ -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"`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue