直接按照这样的效果进行转换即可id=model.(bson.D).Map()[key].(int32)
primitive.D数据转结构体
需要经过两轮操作
bsonBytes, err := bson.Marshal(data)
if e
2020-07-25