package com.weavi.repository;

import com.weavi.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface UserDao extends JpaRepository<User,Integer> {
    User findByUsernameAndPassword(String username,String password);

    List<User> findByUsername(String username);
}
