✨Feat: 增添结构体解析函数
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
Reference in New Issue
Block a user