偏好推荐修正

This commit is contained in:
2024-11-17 13:59:32 +08:00
parent bec2c9075b
commit a7845dbd4a
8 changed files with 185 additions and 14 deletions

View File

@@ -197,6 +197,12 @@ func NewSchema(config Config) (graphql.Schema, error) {
go checkColorNullRows()
}
// 定时检查点赞收藏记录
if config.Gorse.Open {
fmt.Println("开启用户偏好收集")
gorseInit(config.Gorse.Host, config.Gorse.Port)
}
// 用户的可选字段
user := graphql.NewObject(graphql.ObjectConfig{
Name: "User",