修改奖励配置新增过期类型和时间
This commit is contained in:
@ -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.
|
||||
|
||||
Reference in New Issue
Block a user