我有以下情况 struct 是
type Band struct {
Name string `json:"name"`
Albums []String `json:"album"`
GradeLevel []string `json:"gradeLevel,omitempty"`
Topics []string `json:"topics,omitempty"`
}
数据存储方式 (示例)
**Name Albums GradeLevel Topics**
Sample ["sample","Test"] ["grade1"] ["Children","Poems"]
test ["Test"] ["grade2","grade1"] ["therapy","slow"]
在这里,如何使用给定的输入(如 Request to query)查询以从 Band kind 获取适当的值是{"album" : ["sample","Test"] , "gradeLevel" : ["grade1"] , "topic" : ["poem"]}
可以从前端组合输入,因此如何查询基于输入以显示上述场景的值列表。