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