同步点赞数据

This commit is contained in:
2025-03-04 05:44:00 +08:00
parent e6410582d2
commit 85efe470b9
2 changed files with 16 additions and 10 deletions

View File

@@ -106,6 +106,8 @@ func main() {
if config.GetBool("gorse.open") {
fmt.Println("开启用户偏好收集")
api.GorseInit(config.GetString("gorse.host"), config.GetInt("gorse.port"))
fmt.Println("同步点赞数据")
go api.PutPraises()
}
schema, err := graphql.NewSchema(graphql.SchemaConfig{Query: graphql.NewObject(graphql.ObjectConfig{Name: "RootQuery", Fields: graphql.Fields{