/// <summary>
 /// 实例化一个新的积分兑换的计划的快照
 /// </summary>
 /// <param name="model">积分兑换的计划的快照的数据模型</param>
 public RedeemSnapshotExport(RedeemSnapshot 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;
 }
 /// <summary>
 /// 实例化一个新的积分兑换的参与记录
 /// </summary>
 /// <param name="owner">用户</param>
 /// <param name="plan">对应的计划(快照)</param>
 /// <param name="sum">兑换数量</param>
 public RedeemRecord(Author owner, RedeemSnapshot plan, int sum)
 {
     this.Owner = owner;
     this.Plan = plan;
     this.Sum = sum;
     this.PriceOfIntegral = plan.Integral;
     this.PriceOfMoney = plan.Money;
     this.SumOfIntegral = this.PriceOfIntegral * this.Sum;
     this.SumOfMoney = Math.Round(this.PriceOfMoney * this.Sum, 2);
 }