mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-29 05:38:45 +08:00
model
This commit is contained in:
parent
3e0c6f94ed
commit
0f17f52c2c
@ -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 {
|
||||
|
@ -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
pkg/common/db/mongoDB/super_group.go
Normal file
11
pkg/common/db/mongoDB/super_group.go
Normal 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"`
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user