package com.example.mybatistraining1.test.mapper;

import com.example.mybatistraining1.test.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
public interface UserMapper {
    public void insert(User user);
    public User selectUser(@Param(value = "username") String userName,@Param(value = "password") String password);
    public List<User> selectAll();
}