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

This commit is contained in:
hhs
2026-03-27 19:21:44 +08:00
parent 4b9670967f
commit e44f684c0c
11 changed files with 177 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"`
}