修改奖励类型

This commit is contained in:
2025-06-24 19:53:39 +08:00
parent e28c44ecbb
commit 1c0b9a2d93
42 changed files with 666 additions and 1060 deletions

View File

@ -11,22 +11,27 @@ import (
// Rewards is the golang structure of table rewards for DAO operations like Where/Data.
type Rewards struct {
g.Meta `orm:"table:rewards, do:true"`
Id interface{} // 奖励ID
RewardTypeId interface{} // 奖励类型ID
Name interface{} // 奖励名称如100积分、5元优惠券
Description interface{} // 奖励描述
Source interface{} // 来源1=系统内置2=门店自定义
StoreId interface{} // 门店ID系统内置奖励为NULL
Value interface{} // 奖励值(如积分数额、优惠金额)
Status interface{} // 状态1=正常2=禁用
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
DeletedAt *gtime.Time // 软删除时间戳
TotalNum interface{} // 奖励总数量NULL表示不限量
UsedNum interface{} // 已使用数量
ExpireType interface{} // 过期类型1=时间段过期2=领取后多少天过期
ValidFrom *gtime.Time // 有效开始时间expire_type=1 时使用
ValidTo *gtime.Time // 有效结束时间expire_type=1 时使用
ExpireDays interface{} // 领取后多少天过期expire_type=2 时使用
g.Meta `orm:"table:rewards, do:true"`
Id interface{} // 奖励ID
StoreId interface{} // 门店ID系统奖励为NULL
Name interface{} // 奖励名称
RewardTypeId interface{} // 奖励类型ID关联 reward_types 表
GameId interface{} // 游戏ID
ImageUrl interface{} // 奖励图片链接
QqGoodsId interface{} // QQ网吧物品ID
QqGoodsIdStr interface{} // QQ网吧物品ID字符串
Status interface{} // 状态1=启用2=禁用
ExpireType interface{} // 过期方式1=时间段过期2=领取后过期
ValidFrom *gtime.Time // 有效期开始时间expire_type=1时
ValidTo *gtime.Time // 有效期结束时间expire_type=1时
ExpireDays interface{} // 领取后多少天过期expire_type=2时
DailyTotalLimit interface{} // 每日发放总限NULL表示不限制
TotalLimit interface{} // 奖励总限NULL表示不限制
UserDailyLimit interface{} // 用户每日领取限制NULL表示不限制
UserTotalLimit interface{} // 用户领取总次数限制NULL表示不限制
ReceivedNum interface{} // 已领取数量
GrantQuantity interface{} // 每次发放个数
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
DeletedAt *gtime.Time // 删除时间(软删除)
}