计划任务修改,act与kv使用协程方式执行,不影响其他任务

This commit is contained in:
ayflying
2025-09-01 18:12:58 +08:00
parent 95539038c0
commit 50cfc23ad2
6 changed files with 31 additions and 12 deletions

View File

@@ -5,6 +5,10 @@
package service
import (
"context"
)
type (
IGameKv interface {
// SavesV1 方法
@@ -12,7 +16,7 @@ type (
// @Description: 保存用户KV数据列表。
// @receiver s: sGameKv的实例。
// @return err: 错误信息如果操作成功则为nil。
SavesV1() (err error)
SavesV1(ctx context.Context) (err error)
}
)