/// <summary> /// 实例化一个新的积分兑换的计划的快照 /// </summary> /// <param name="plan">对应的积分兑换的计划</param> public RedeemSnapshot(RedeemPlan plan) { this.Title = plan.Title; this.Description = plan.Description; this.Integral = plan.Integral; this.Money = plan.Money; this.Code = plan.Code; }
/// <summary> /// 实例化一个新的积分兑换的计划 /// </summary> /// <param name="model">积分兑换的计划的数据模型</param> public RedeemPlanExport(RedeemPlan model) { this.Id = model.Id; this.Title = model.Title; this.Description = model.Description; this.Integral = model.Integral; this.Money = model.Money; this.Code = model.Code; this.BeginTime = model.BeginTime; this.EndTime = model.EndTime; this.Hide = model.Hide; this.Status = model.Status; }