package com.YuyeTech.HeartRate.repository;

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

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

/**
 * @author:slambb
 * @date:2021/8/5
 */
public interface UserLevelRepository extends JpaRepository<UserLevel,Integer> {

    Optional<UserLevel> findByUserIdAndEventType(String userId,Integer eventType);

    List<UserLevel> findByUserId(String userId);
}
