✨Feat: 增添结构体解析函数

This commit is contained in:
hhs
2026-03-27 19:30:04 +08:00
parent 4b9670967f
commit 18040d00c4
11 changed files with 179 additions and 37 deletions
+12
View File
@@ -0,0 +1,12 @@
package response_struct
type Quiz struct {
Questions []Question `json:"questions"`
}
type Question struct {
Question string `json:"question"`
Options []string `json:"options"`
Answer string `json:"answer"`
Explanation string `json:"explanation"`
}