✨Feat: 增添结构体解析函数
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
package response_struct
|
||||
|
||||
type ScenarioResponse struct {
|
||||
Scenarios []Scenario `json:"scenarios"`
|
||||
}
|
||||
|
||||
type Scenario struct {
|
||||
Name string `json:"name"`
|
||||
Background string `json:"background"`
|
||||
Solution string `json:"solution"`
|
||||
CodeExample string `json:"code_example"`
|
||||
CoreProblemSolved string `json:"core_problem_solved"`
|
||||
KeyConsiderations []string `json:"key_considerations"`
|
||||
}
|
||||
Reference in New Issue
Block a user