package com.YuyeTech.HeartRate.repository;

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

import java.util.Optional;

public interface AdminInfoRepository extends JpaRepository<AdminInfo,Integer> {

    Optional<AdminInfo> findByAdminNameAndAdminPassword(String name, String password);
}
