新增游戏绑定方式,修改任务排行

This commit is contained in:
chy
2025-06-18 16:39:53 +08:00
parent e6a53f4837
commit 217b550d0f
16 changed files with 92 additions and 68 deletions

View File

@ -29,6 +29,7 @@ type GamesColumns struct {
CreatedAt string // 创建时间
UpdatedAt string // 更新时间
DeletedAt string // 删除时间
BoundType string // 1qq绑定 2wx绑定 3all
}
// 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.

View File

@ -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.

View File

@ -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",