package com.YuyeTech.TPlat.repository;

import com.YuyeTech.TPlat.dataobject.Recommend;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * @author:slambb
 * @date:2020/2/4
 */
public interface RecommendRepository extends JpaRepository<Recommend,Integer>, JpaSpecificationExecutor<Recommend> {

    //根据type 查找对应的列表
    List<Recommend> findByRecommendType(Integer type, Pageable pageable);

    void deleteByRObjectId(String gameId);
}
