package com.YuyeTech.HeartRate.repository;

import com.YuyeTech.HeartRate.dataobject.WeightInfo;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author:slambb
 * @date:2019/12/31
 */
public interface WeightInfoRepository extends JpaRepository<WeightInfo,String> {
    List<WeightInfo> findByUserId(String userId);

    /**
     * 根据pageable 查找列表
     * @param userId
     * @param pageable
     * @return
     */
    List<WeightInfo> findByUserId(String userId, Pageable pageable);
}
