From b4d82579b7ba2273c9e28ab99f3645439622babc Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Mon, 1 Aug 2022 16:36:23 +0800 Subject: [PATCH] fix bug --- pkg/common/db/mongoModel.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/common/db/mongoModel.go b/pkg/common/db/mongoModel.go index 9ddcd0085..a5e0c37b0 100644 --- a/pkg/common/db/mongoModel.go +++ b/pkg/common/db/mongoModel.go @@ -945,14 +945,14 @@ func (d *DataBases) GetUserFriendWorkMoments(showNumber, pageNumber int32, userI } type SuperGroup struct { - GroupID string `bson:"group_id"` + GroupID string `bson:"group_id" json:"groupID"` //MemberNumCount int `bson:"member_num_count"` - MemberIDList []string `bson:"member_id_list"` + MemberIDList []string `bson:"member_id_list" json:"memberIDList"` } type UserToSuperGroup struct { - UserID string `bson:"user_id"` - GroupIDList []string `bson:"group_id_list"` + UserID string `bson:"user_id" json:"userID"` + GroupIDList []string `bson:"group_id_list" json:"groupIDList"` } func (d *DataBases) CreateSuperGroup(groupID string, initMemberIDList []string, memberNumCount int) error {