Files
arenax-server/internal/controller/task/task_v1_sync_task.go

18 lines
391 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package task
import (
"context"
"server/internal/service"
"server/api/task/v1"
)
func (c *ControllerV1) SyncTask(ctx context.Context, req *v1.SyncTaskReq) (res *v1.SyncTaskRes, err error) {
go func() {
_, err = service.Task().SyncTaskFromGamelife(context.Background())
}()
return &v1.SyncTaskRes{
Message: "同步调用成功等待数据同步5分钟后刷新",
}, nil
}