package com.td.Dawa.game.complayerbackpack.repository;

import com.td.Dawa.common.repository.*;
import com.td.Dawa.game.complayerbackpack.pojo.ComPlayerBackpack;
import com.td.Dawa.game.complayerbackpack.vo.ComPlayerBackpackVo;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Repository;

import javax.swing.text.html.Option;
import java.util.List;
import java.util.Optional;

@Repository
public interface ComPlayerBackpackRepository extends CommonRepository<ComPlayerBackpack, String> {

    Optional<ComPlayerBackpack> findByUserIdAndItemId(String userId, Integer itemId);

    List<ComPlayerBackpack> findAllByItemIdInAndUserId(List<Integer> itemId,String userId);
}
