You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
// 定义包名
package com.yanzhen.mapper ;
import java.util.List ; // 导入Java的List类, 用于处理列表数据结构
import java.util.Map ; // 导入Java的Map类, 用于处理键值对数据结构
import com.yanzhen.entity.User ; // 导入User实体类, 用于操作用户数据
import org.apache.ibatis.annotations.Param ; // 导入MyBatis的Param注解, 用于传递参数到SQL语句中
// 定义UserMapper接口
public interface UserMapper {
// 定义create方法创建新用户
public int create ( User user ) ;
// 根据用户ID删除用户
public int delete ( Integer id ) ;
// 更新用户信息
public int update ( User user ) ;
// 选择性更新用户信息
public int updateSelective ( User user ) ;
//查询用户列表
public List < User > query ( User user ) ;
// 查询用户详情
public User detail ( Integer id ) ;
//查询用户
public User login ( @Param ( "userName" ) String userName , @Param ( "password" ) String password ) ;
// 统计符合条件的用户数量
public int count ( User user ) ;
}