我对此主题感到非常抱歉。我看到很多其他人,但任何东西都可以帮助我解决我的问题。 所以,我使用的围棋+ MgO的在我的后端和我有搜索的结构是: type Video struct {
ID bson.ObjectId `bson:"_id,omitempty"`
Title string `bson:"title"`
Duration string `bso
我试图获取某个用户创作的博客条目列表,但我的查询只返回创建的第一个条目。 这是我的用户模型 type User struct {
Id bson.ObjectId `bson:"_id,omitempty" json:"id"`
Name string `json:"name"`
}
和我BlogEntry模型 type BlogEntry struct {
I