package com.red.circle.other.infra.database.rds.dao.family;


import com.red.circle.framework.mybatis.dao.BaseDAO;
import com.red.circle.other.infra.database.rds.dto.family.FamilyMemberExpDTO;
import com.red.circle.other.infra.database.rds.entity.family.FamilyMemberWeekExp;
import com.red.circle.other.infra.enums.family.FamilyRoleEnum;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 房间贡献流水 Mapper 接口.
 * </p>
 *
 * @author pengliang
 * @since 2021-01-13
 */
public interface FamilyMemberWeekExpDAO extends BaseDAO<FamilyMemberWeekExp> {

  List<FamilyMemberExpDTO> pageByFamilyId(@Param("familyId") Long familyId,
      @Param("roles") List<FamilyRoleEnum> roles,
      @Param("start") Integer start, @Param("end") Integer end);

  List<FamilyMemberExpDTO> listByFamilyId(@Param("familyId") Long familyId,
      @Param("roles") List<FamilyRoleEnum> roles);
}
