新增游戏绑定方式,修改任务排行
This commit is contained in:
@ -29,6 +29,7 @@ type GamesColumns struct {
|
||||
CreatedAt string // 创建时间
|
||||
UpdatedAt string // 更新时间
|
||||
DeletedAt string // 删除时间
|
||||
BoundType string // 1:qq绑定 2:wx绑定 3:all
|
||||
}
|
||||
|
||||
// gamesColumns holds the columns for the table games.
|
||||
@ -41,6 +42,7 @@ var gamesColumns = GamesColumns{
|
||||
CreatedAt: "created_at",
|
||||
UpdatedAt: "updated_at",
|
||||
DeletedAt: "deleted_at",
|
||||
BoundType: "bound_type",
|
||||
}
|
||||
|
||||
// NewGamesDao creates and returns a new DAO object for table data access.
|
||||
|
||||
@ -32,6 +32,8 @@ type RewardsColumns struct {
|
||||
CreatedAt string // 创建时间
|
||||
UpdatedAt string // 更新时间
|
||||
DeletedAt string // 软删除时间戳
|
||||
TotalNum string // 奖励总数量,NULL表示不限量
|
||||
UsedNum string // 已使用数量
|
||||
}
|
||||
|
||||
// rewardsColumns holds the columns for the table rewards.
|
||||
@ -47,6 +49,8 @@ var rewardsColumns = RewardsColumns{
|
||||
CreatedAt: "created_at",
|
||||
UpdatedAt: "updated_at",
|
||||
DeletedAt: "deleted_at",
|
||||
TotalNum: "total_num",
|
||||
UsedNum: "used_num",
|
||||
}
|
||||
|
||||
// NewRewardsDao creates and returns a new DAO object for table data access.
|
||||
|
||||
@ -25,8 +25,6 @@ type StoreTaskRewardsColumns struct {
|
||||
TaskId string // 门店任务ID
|
||||
RewardId string // 奖励ID
|
||||
StoreId string // 门店ID
|
||||
Quantity string // 奖励数量(如发放多少个奖励)
|
||||
Status string // 状态:1=正常,0=禁用
|
||||
CreatedAt string // 创建时间
|
||||
UpdatedAt string // 更新时间
|
||||
DeletedAt string // 软删除时间戳
|
||||
@ -38,8 +36,6 @@ var storeTaskRewardsColumns = StoreTaskRewardsColumns{
|
||||
TaskId: "task_id",
|
||||
RewardId: "reward_id",
|
||||
StoreId: "store_id",
|
||||
Quantity: "quantity",
|
||||
Status: "status",
|
||||
CreatedAt: "created_at",
|
||||
UpdatedAt: "updated_at",
|
||||
DeletedAt: "deleted_at",
|
||||
|
||||
Reference in New Issue
Block a user