package com.nova.sankuai.domain.api.hengyidai.response; import com.nova.sankuai.domain.vo.RepayPlanVo; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; @Data @ApiModel("还款计划") public class RepayPlans { @ApiModelProperty("当前期数") private Integer currentPeriodNum; @ApiModelProperty("应还款时间 格式yyyy-MM-dd HH:mm:ss") private String repayTime; @ApiModelProperty("当期应还总金额 单位:分。") private Long currentTotalRepayAmount; @ApiModelProperty("应还本金 单位:分。") private Long repayPrincipal; @ApiModelProperty("应还利息 单位:分。") private Long repayInterest; @ApiModelProperty("应还其他费用 单位:分。") private Long repayOtherFee; @ApiModelProperty("当期还款金额描述 展示给用户看,如:含本金 xxx元 , 利 息 xxx元,其他费用xxxx 元") private String remark; public RepayPlanVo parseVo() { RepayPlanVo repayPlanVo = new RepayPlanVo(); repayPlanVo.setCurrentPeriodNum(this.currentPeriodNum); repayPlanVo.setRepayTime(this.repayTime); repayPlanVo.setCurrentTotalRepayAmount(this.currentTotalRepayAmount); repayPlanVo.setRepayPrincipal(this.repayPrincipal); repayPlanVo.setRepayInterest(this.repayInterest); repayPlanVo.setRepayOtherFee(this.repayOtherFee); repayPlanVo.setRemark(this.getRemark()); return repayPlanVo; } }