修改查询已完成任务列表

This commit is contained in:
chy
2025-07-05 15:39:18 +08:00
parent 40686bbd29
commit 6bc186242b
2 changed files with 2 additions and 0 deletions

View File

@ -721,6 +721,7 @@ func (s *sTask) GetTaskList(ctx context.Context, in *model.GetTaskListV2In) (out
TaskName: v.Title, TaskName: v.Title,
GameId: in.Gid, GameId: in.Gid,
TaskType: v.GameTaskConfig.TimeType, TaskType: v.GameTaskConfig.TimeType,
CompletedAt: completedTime,
}).InsertAndGetId() }).InsertAndGetId()
if err != nil { if err != nil {
return ecode.Fail.Sub("创建用户任务记录失败") return ecode.Fail.Sub("创建用户任务记录失败")

View File

@ -60,6 +60,7 @@ type UserTaskRecord struct {
User UserInfo `json:"user,omitempty" orm:"with:id=user_id"` User UserInfo `json:"user,omitempty" orm:"with:id=user_id"`
Game GameInfo `json:"game,omitempty" orm:"with:game_id=game_id"` Game GameInfo `json:"game,omitempty" orm:"with:game_id=game_id"`
CompletedAt *gtime.Time `json:"completedAt" orm:"completed_at" description:"任务完成时间"` // 任务完成时间 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"` // Store Store `json:"store" orm:"with:id=store_id"`
} }