package com.itheima.dao;
import com.itheima.domain.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/*****
 * @Author: http://www.itheima.com
 * @Description: com.itheima.dao.UserInfoDao
 ****/
@Mapper
public interface UserInfoDao {

    /***
     * 根据name获取用户信息
     * @param name
     * @return
     */
    @Select("select * from user_info where username=#{name}")
    UserInfo one(String name);
}
