修改查询已完成任务列表
This commit is contained in:
@ -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("创建用户任务记录失败")
|
||||||
|
|||||||
@ -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"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user