diff --git a/internal/api/group/group.go b/internal/api/group/group.go index 9c7500872..81e3a4ad7 100644 --- a/internal/api/group/group.go +++ b/internal/api/group/group.go @@ -230,7 +230,7 @@ func GetGroupAllMemberList(c *gin.Context) { client := rpc.NewGroupClient(etcdConn) RpcResp, err := client.GetGroupAllMember(context.Background(), req) if err != nil { - log.NewError(req.OperationID, "GetGroupAllMember failed ", err.Error(), req.String()) + log.NewError(req.OperationID, "GetGroupAllMember failed err", err.Error(), req.String()) c.JSON(http.StatusInternalServerError, gin.H{"errCode": 500, "errMsg": err.Error()}) return } 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 {