package com.yanzhen.mapper; // 定义包名,表示该接口属于com.yanzhen.mapper包 import java.util.List; // 导入Java的List类,用于处理列表数据结构 import java.util.Map; // 导入Java的Map类,用于处理键值对数据结构 import com.yanzhen.entity.Student; // 导入Student实体类,用于操作学生信息 public interface StudentMapper { // 定义一个名为StudentMapper的公共接口 public int create(Student student); // 定义一个创建学生记录的方法,返回值为int类型,参数为Student对象 public int delete(Integer id); // 定义一个删除学生记录的方法,返回值为int类型,参数为学生的ID public int update(Student student); // 定义一个更新学生记录的方法,返回值为int类型,参数为Student对象 public int updateSelective(Student student); // 定义一个选择性更新学生记录的方法,返回值为int类型,参数为Student对象 public List query(Student student); // 定义一个查询学生记录的方法,返回值为List类型,参数为Student对象 public Student detail(Integer id); // 定义一个获取学生详细信息的方法,返回值为Student对象,参数为学生的ID public Student detailByName(String name); // 定义一个通过名字获取学生详细信息的方法,返回值为Student对象,参数为学生的名字 public int count(Student student); // 定义一个统计学生数量的方法,返回值为int类型,参数为Student对象 public Student login(String userName,String password); // 定义一个登录方法,返回值为Student对象,参数为用户名称和密码 }