mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-12-25 06:26:35 +08:00
支持购买套餐/续费套餐/用户账户操作等
This commit is contained in:
@@ -136,3 +136,14 @@ func (this *UserPlanDAO) UpdateUserPlan(tx *dbs.Tx, userPlanId int64, planId int
|
||||
op.IsOn = isOn
|
||||
return this.Save(tx, op)
|
||||
}
|
||||
|
||||
// UpdateUserPlanDayTo 修改套餐日期
|
||||
func (this *UserPlanDAO) UpdateUserPlanDayTo(tx *dbs.Tx, userPlanId int64, dayTo string) error {
|
||||
if userPlanId <= 0 {
|
||||
return errors.New("invalid userPlanId")
|
||||
}
|
||||
var op = NewUserPlanOperator()
|
||||
op.Id = userPlanId
|
||||
op.DayTo = dayTo
|
||||
return this.Save(tx, op)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user