type A struct {
Age int `json:"age"
}
type B struct {
Id int `json:"id"
}
type C struct {
Data []struct{} `json:"data"`
}
C的Data需要按需求存放A或者B的数组,这个Data的类型应该怎么设置?
Age int `json:"age"
}
type B struct {
Id int `json:"id"
}
type C struct {
Data []struct{} `json:"data"`
}
C的Data需要按需求存放A或者B的数组,这个Data的类型应该怎么设置?











