package com.YuyeTech.HeartRate.game.gameInfo.repository;

import com.YuyeTech.HeartRate.common.repository.CommonRepository;
import com.YuyeTech.HeartRate.game.gameInfo.projo.GameTagReference;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * @author:slambb
 * @date:2020/1/16
 */
//extends JpaRepository<GameTagReference,Integer>
@Repository
public interface GameTagReferenceRepository  extends CommonRepository<GameTagReference,Integer> {

    Page<GameTagReference> findByGameId(String gameId, Pageable pageable);

    List<GameTagReference> findByGameId(String gameId);

    void deleteAllByGameId(String gameId);

}
