package com.YuyeTech.HeartRate.repository;

import com.YuyeTech.HeartRate.dataobject.UserReward;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.Optional;

/**
 * @author:slambb
 * @date:2021/8/5
 */
public interface UserRewardRepository extends JpaRepository<UserReward,Integer>, JpaSpecificationExecutor<UserReward> {

    Optional<UserReward> findByUserIdAndEventId(String userId,Integer eventId);

}
