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"` }