You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Open-IM-Server/cmd/cmdutils/main.go

18 lines
454 B

2 years ago
package main
import (
2 years ago
"OpenIM/internal/task"
2 years ago
"flag"
"fmt"
"time"
)
func main() {
2 years ago
var userID = flag.String("user_id", "", "userID to clear msg and reset seq")
var superGroupID = flag.String("super_group_id", "", "superGroupID to clear msg and reset seq")
var fixAllSeq = flag.Bool("fix_all_seq", false, "fix seq")
2 years ago
flag.Parse()
2 years ago
fmt.Println(time.Now(), "start cronTask", *userID, *superGroupID)
task.FixSeq(*userID, *superGroupID, *fixAllSeq)
2 years ago
}