This commit is contained in:
wangchuxiao 2023-01-17 17:15:18 +08:00
parent 3e0c6f94ed
commit 0f17f52c2c
3 changed files with 16 additions and 2 deletions

View File

@ -61,6 +61,10 @@ func initMongo() *mongo.Client {
return mongoClient
}
func GetCollection(mongoClient *mongo.Client) {
}
func CreateAllIndex(mongoClient *mongo.Client) {
// mongodb create index
if err := createMongoIndex(mongoClient, cSendLog, false, "send_id", "-send_time"); err != nil {

View File

@ -1092,7 +1092,6 @@ func (d *db.DataBases) GetUserFriendWorkMoments(showNumber, pageNumber int32, us
type SuperGroup struct {
GroupID string `bson:"group_id" json:"groupID"`
//MemberNumCount int `bson:"member_num_count"`
MemberIDList []string `bson:"member_id_list" json:"memberIDList"`
}

View File

@ -0,0 +1,11 @@
package mongoDB
type SuperGroup struct {
GroupID string `bson:"group_id" json:"groupID"`
MemberIDList []string `bson:"member_id_list" json:"memberIDList"`
}
type UserToSuperGroup struct {
UserID string `bson:"user_id" json:"userID"`
GroupIDList []string `bson:"group_id_list" json:"groupIDList"`
}