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

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

@ -22,6 +22,10 @@ type Reward struct {
CreatedAt *gtime.Time `json:"createdAt" dc:"创建时间" orm:"created_at"`
UpdatedAt *gtime.Time `json:"updatedAt" dc:"更新时间" orm:"updated_at"`
DeletedAt *gtime.Time `json:"deletedAt" dc:"软删除时间戳" orm:"deleted_at"`
ExpireType int `json:"expireType"` // 过期类型1=时间段过期2=领取后多少天过期
ValidFrom *gtime.Time `json:"validFrom"` // 有效开始时间expire_type=1 时使用)
ValidTo *gtime.Time `json:"validTo"` // 有效结束时间expire_type=1 时使用)
ExpireDays int `json:"expireDays"` // 领取后多少天过期expire_type=2 时使用)
}
// RewardCreateIn 创建奖励入参
@ -35,6 +39,10 @@ type RewardCreateIn struct {
StoreId int64
Value int64
Status int
ExpireType int
ExpireDays int
ValidFrom *gtime.Time
ValidTo *gtime.Time
}
// RewardCreateOut 创建奖励出参
@ -53,6 +61,10 @@ type RewardUpdateIn struct {
StoreId int64
Value int64
Status int
ExpireType int
ExpireDays int
ValidFrom *gtime.Time
ValidTo *gtime.Time
}
// RewardUpdateOut 更新奖励出参