From 6bc186242b8b8af7073eafc298bb938120cdb4c2 Mon Sep 17 00:00:00 2001 From: chy <2463300564@qq.com> Date: Sat, 5 Jul 2025 15:39:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9F=A5=E8=AF=A2=E5=B7=B2?= =?UTF-8?q?=E5=AE=8C=E6=88=90=E4=BB=BB=E5=8A=A1=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/logic/task/task.go | 1 + internal/model/userTask.go | 1 + 2 files changed, 2 insertions(+) diff --git a/internal/logic/task/task.go b/internal/logic/task/task.go index 0d70eff..65f9101 100644 --- a/internal/logic/task/task.go +++ b/internal/logic/task/task.go @@ -721,6 +721,7 @@ func (s *sTask) GetTaskList(ctx context.Context, in *model.GetTaskListV2In) (out TaskName: v.Title, GameId: in.Gid, TaskType: v.GameTaskConfig.TimeType, + CompletedAt: completedTime, }).InsertAndGetId() if err != nil { return ecode.Fail.Sub("创建用户任务记录失败") diff --git a/internal/model/userTask.go b/internal/model/userTask.go index d87b969..54e0f20 100644 --- a/internal/model/userTask.go +++ b/internal/model/userTask.go @@ -60,6 +60,7 @@ type UserTaskRecord struct { User UserInfo `json:"user,omitempty" orm:"with:id=user_id"` Game GameInfo `json:"game,omitempty" orm:"with:game_id=game_id"` CompletedAt *gtime.Time `json:"completedAt" orm:"completed_at" description:"任务完成时间"` // 任务完成时间 + CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"` // 创建时间 // Store Store `json:"store" orm:"with:id=store_id"` }