package com.red.circle.wallet.infra.database.rds.service.bean;

import com.red.circle.framework.dto.PageResult;
import com.red.circle.framework.mybatis.service.BaseService;
import com.red.circle.wallet.infra.database.rds.entity.bean.BeanIncomeExpenditure;
import com.red.circle.wallet.inner.model.cmd.UserBeanIncomeExpenditurePageQryCmd;

/**
 * <p>
 * 用户豆子收支 服务类.
 * </p>
 *
 * @author pengshigang
 * @since 2021-10-14
 */
public interface BeanIncomeExpenditureService extends BaseService<BeanIncomeExpenditure> {

  /**
   * 流水分页列表.
   *
   * @param query 查询条件
   * @return page
   */
  PageResult<BeanIncomeExpenditure> pageRunningWater(
      UserBeanIncomeExpenditurePageQryCmd query);

  /**
   * 保存用户豆子收支
   */
  void saveBeanIncome(BeanIncomeExpenditure beanIncomeExpenditure);
}
