package com.td.boss.game.combossesbattle.repository;

import com.td.boss.common.repository.*;
import com.td.boss.game.combossesbattle.pojo.ComBossesBattle;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

@Repository
public interface ComBossesBattleRepository extends CommonRepository<ComBossesBattle, Integer> {

    Optional<ComBossesBattle> findByPlayerIdAndBossesId(Integer playerId,Integer bossId);

    List<ComBossesBattle> findAllByBossesId(Integer bossesId);
}
