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

import com.red.circle.framework.mybatis.dao.BaseDAO;
import com.red.circle.other.infra.database.rds.entity.game.GameVipLevelWeekly;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;

public interface GameVipLevelWeeklyDAO extends BaseDAO<GameVipLevelWeekly> {

    GameVipLevelWeekly getByUserAndWeek(@Param("userId") Long userId,
                                         @Param("activityId") Long activityId,
                                         @Param("weekStartDate") LocalDate weekStartDate);

    GameVipLevelWeekly getLastWeekLevel(@Param("userId") Long userId,
                                         @Param("activityId") Long activityId,
                                         @Param("currentWeekStartDate") LocalDate currentWeekStartDate);
}
