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

import com.td.boss.common.repository.CommonRepository;
import com.td.boss.game.complayersattri.pojo.ComPlayersLucky;
import org.springframework.stereotype.Repository;

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

@Repository
public interface ComPlayersLuckyRepository extends CommonRepository<ComPlayersLucky, Integer> {
    List<ComPlayersLucky> findAllByUserId(String userId);

    Optional<ComPlayersLucky> findFirstByUserIdAndToolsIdOrderByCreateTimeDesc(String userId, Integer toolsId);
}
