修改查询已完成任务列表
This commit is contained in:
@ -48,6 +48,35 @@ type UserTask2 struct {
|
||||
//TaskRewards []TaskReward `json:"taskRewards" orm:"with:task_id=task_id"`
|
||||
}
|
||||
|
||||
type UserTaskRecord struct {
|
||||
g.Meta `orm:"table:task"`
|
||||
Id int64 `json:"id" orm:"id" description:"用户任务唯一标识符"` // 用户任务唯一标识符
|
||||
UserId int64 `json:"userId" orm:"user_id" description:"用户ID"` // 用户ID
|
||||
TaskId string `json:"taskId" orm:"task_id" description:"腾讯任务ID"` // 腾讯任务ID
|
||||
//Status int `json:"status" orm:"status" description:"任务状态:1=进行中,2=已完成中,3=未完成"` // 任务状态:1=进行中(显示领取按钮),2=已完成
|
||||
//StoreId int64 `json:"storeId" orm:"store_id" description:"门店 id"` // 门店 id
|
||||
TaskName string `json:"taskName" orm:"task_name" description:"任务名称"` // 任务名称
|
||||
GameId int64 `json:"gameId" orm:"game_id" description:"游戏 id"` // 游戏 id
|
||||
User UserInfo `json:"user,omitempty" orm:"with:id=user_id"`
|
||||
Game GameInfo `json:"game,omitempty" orm:"with:game_id=game_id"`
|
||||
// Store Store `json:"store" orm:"with:id=store_id"`
|
||||
}
|
||||
|
||||
type UserInfo struct {
|
||||
g.Meta `orm:"table:users"`
|
||||
Id int64 `json:"id" orm:"id,primary"` // 用户ID
|
||||
Username string `json:"username" orm:"username,not null"` // 用户名
|
||||
Nickname string `json:"nickname" orm:"nickname"` // 昵称
|
||||
}
|
||||
|
||||
type GameInfo struct {
|
||||
g.Meta `orm:"table:games"`
|
||||
GameId int64 `json:"gameId" orm:"game_id"` // 腾讯游戏 id
|
||||
GameName string `json:"gameName" orm:"game_name"` // 游戏名称
|
||||
GameCode string `json:"gameCode" orm:"game_code"` // 游戏代号
|
||||
Id int64 `json:"id" orm:"id"`
|
||||
}
|
||||
|
||||
// UserTaskRankingIn 任务排行榜入参
|
||||
type UserTaskRankingIn struct {
|
||||
Page int
|
||||
|
||||
Reference in New Issue
Block a user