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

import com.td.boss.common.repository.*;
import com.td.boss.game.comrewards.pojo.ComRewards;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface ComRewardsRepository extends CommonRepository<ComRewards, Integer> {

   Optional<ComRewards> findByUserIdAndType(String userId, Integer type);
}
