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 {