package com.ruoyi.user.domain.vo;
|
|
/**
|
* 会员收益汇总 VO
|
*
|
* 金额单位统一为「分」,由前端负责格式化为元展示;
|
* 无收益流水时三栏均为 0,避免前端出现 null 判断分支。
|
*
|
* @author hugray
|
*/
|
public class EarningSummaryVo
|
{
|
/** 今日收益(单位:分) */
|
private Long today;
|
|
/** 本月收益(单位:分) */
|
private Long month;
|
|
/** 累计收益(单位:分) */
|
private Long total;
|
|
public EarningSummaryVo()
|
{
|
}
|
|
public EarningSummaryVo(Long today, Long month, Long total)
|
{
|
this.today = today;
|
this.month = month;
|
this.total = total;
|
}
|
|
/**
|
* 全零汇总:用于会员无任何收益流水的场景
|
*
|
* @return 三栏均为 0 的汇总对象
|
*/
|
public static EarningSummaryVo zero()
|
{
|
return new EarningSummaryVo(0L, 0L, 0L);
|
}
|
|
public Long getToday()
|
{
|
return today;
|
}
|
|
public void setToday(Long today)
|
{
|
this.today = today;
|
}
|
|
public Long getMonth()
|
{
|
return month;
|
}
|
|
public void setMonth(Long month)
|
{
|
this.month = month;
|
}
|
|
public Long getTotal()
|
{
|
return total;
|
}
|
|
public void setTotal(Long total)
|
{
|
this.total = total;
|
}
|
}
|