修改奖励配置新增过期类型和时间

This commit is contained in:
chy
2025-06-23 20:48:22 +08:00
parent 2c59949e87
commit 3166edc3dd
8 changed files with 94 additions and 26 deletions

View File

@ -34,6 +34,10 @@ type RewardsColumns struct {
DeletedAt string // 软删除时间戳
TotalNum string // 奖励总数量NULL表示不限量
UsedNum string // 已使用数量
ExpireType string // 过期类型1=时间段过期2=领取后多少天过期
ValidFrom string // 有效开始时间expire_type=1 时使用)
ValidTo string // 有效结束时间expire_type=1 时使用)
ExpireDays string // 领取后多少天过期expire_type=2 时使用)
}
// rewardsColumns holds the columns for the table rewards.
@ -51,6 +55,10 @@ var rewardsColumns = RewardsColumns{
DeletedAt: "deleted_at",
TotalNum: "total_num",
UsedNum: "used_num",
ExpireType: "expire_type",
ValidFrom: "valid_from",
ValidTo: "valid_to",
ExpireDays: "expire_days",
}
// NewRewardsDao creates and returns a new DAO object for table data access.