调整任务存储,任务查询
This commit is contained in:
@ -21,40 +21,28 @@ type TasksDao struct {
|
||||
|
||||
// TasksColumns defines and stores column names for the table tasks.
|
||||
type TasksColumns struct {
|
||||
Id string // 任务唯一标识符
|
||||
CreatedAt string // 创建时间
|
||||
UpdatedAt string // 更新时间
|
||||
DeletedAt string // 软删除时间戳
|
||||
GameId string // 游戏唯一id
|
||||
StoreId string // 门店 id
|
||||
Status string // 1:启用 2:禁用
|
||||
QqNetbarTaskId string // QQ网吧任务ID
|
||||
QqNetbarTaskRules string // 任务规则
|
||||
QqNetbarTaskMemo string // 任务描述
|
||||
QqNetbarTaskName string // QQ网吧任务名称
|
||||
QqNetbarReward string // qq 网吧奖励名称
|
||||
QqNetbarTargetTime string // qq 网吧任务指标
|
||||
StartTime string // 任务开始时间
|
||||
EndTime string // 任务结束时间
|
||||
Id string // 任务唯一标识符
|
||||
CreatedAt string // 创建时间
|
||||
UpdatedAt string // 更新时间
|
||||
DeletedAt string // 软删除时间戳
|
||||
GameId string // 游戏唯一id
|
||||
StoreId string // 门店 id
|
||||
NetbarAcconut string // 网关
|
||||
TaskId string // 任务 id
|
||||
Task string // 任务
|
||||
}
|
||||
|
||||
// tasksColumns holds the columns for the table tasks.
|
||||
var tasksColumns = TasksColumns{
|
||||
Id: "id",
|
||||
CreatedAt: "created_at",
|
||||
UpdatedAt: "updated_at",
|
||||
DeletedAt: "deleted_at",
|
||||
GameId: "game_id",
|
||||
StoreId: "store_id",
|
||||
Status: "status",
|
||||
QqNetbarTaskId: "qq_netbar_task_id",
|
||||
QqNetbarTaskRules: "qq_netbar_task_rules",
|
||||
QqNetbarTaskMemo: "qq_netbar_task_memo",
|
||||
QqNetbarTaskName: "qq_netbar_task_name",
|
||||
QqNetbarReward: "qq_netbar_reward",
|
||||
QqNetbarTargetTime: "qq_netbar_target_time",
|
||||
StartTime: "start_time",
|
||||
EndTime: "end_time",
|
||||
Id: "id",
|
||||
CreatedAt: "created_at",
|
||||
UpdatedAt: "updated_at",
|
||||
DeletedAt: "deleted_at",
|
||||
GameId: "game_id",
|
||||
StoreId: "store_id",
|
||||
NetbarAcconut: "netbar_acconut",
|
||||
TaskId: "task_id",
|
||||
Task: "task",
|
||||
}
|
||||
|
||||
// NewTasksDao creates and returns a new DAO object for table data access.
|
||||
|
||||
@ -24,7 +24,7 @@ type UserTasksColumns struct {
|
||||
Id string // 用户任务唯一标识符
|
||||
UserId string // 用户ID
|
||||
TaskId string // 腾讯任务ID
|
||||
Status string // 任务状态:1=进行中,2=已完成中,3=未完成
|
||||
Status string // 任务状态:1=进行中,2=已完成,3=待领取奖励
|
||||
SerialNumber string // 流水号,确保用户任务唯一性
|
||||
CreatedAt string // 创建时间
|
||||
UpdatedAt string // 更新时间
|
||||
|
||||
Reference in New Issue
Block a user