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
+4
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 {
+1 -2
View File
@@ -1091,8 +1091,7 @@ 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"`
GroupID string `bson:"group_id" json:"groupID"`
MemberIDList []string `bson:"member_id_list" json:"memberIDList"`
}
+11
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"`
}