优化策略的使用

This commit is contained in:
Yun
2025-08-27 15:52:09 +08:00
parent d39a8b14ee
commit 503cabdcbf
6 changed files with 214 additions and 29 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ type OnceData struct {
type OnceWorker struct{}
func (l OnceWorker) Worker(ctx context.Context, taskType string, taskId string, attachData interface{}) *timerx.OnceWorkerResp {
func (l OnceWorker) Worker(ctx context.Context, taskType timerx.OnceTaskType, taskId string, attachData interface{}) *timerx.OnceWorkerResp {
fmt.Println("执行时间:", time.Now().Format("2006-01-02 15:04:05"))
fmt.Println(taskType, taskId)