ソースを参照

Add tags to models.Quiz

Andrea Fazzi 10 ヶ月 前
コミット
a5b24b7919
2 ファイル変更6 行追加6 行削除
  1. 6 6
      models/test.go
  2. BIN
      probo

+ 6 - 6
models/test.go

@@ -1,10 +1,10 @@
 package models
 
 type Quiz struct {
-	ID       string
-	Hash     string
-	Question *Question
-	Answers  []*Answer
-	Correct  *Answer
-	Type     int
+	ID       string    `json:"id"`
+	Hash     string    `json:"hash"`
+	Question *Question `json:"question"`
+	Answers  []*Answer `json:"answers"`
+	Correct  *Answer   `json:"correct"`
+	Type     int       `json:"type"`
 }