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.
gym/NewsDao.java

35 lines
1.2 KiB

This file contains ambiguous Unicode characters!

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.

// 声明当前文件所属的包路径表示该接口位于com.dao包下
package com.dao;
// 导入新闻实体类,用于数据库表映射
import com.entity.NewsEntity;
// 导入MyBatis Plus的基础Mapper接口提供基本CRUD操作
import com.baomidou.mybatisplus.mapper.BaseMapper;
// 导入Java的List集合类
import java.util.List;
// 导入Java的Map集合类用于键值对存储
import java.util.Map;
// 导入MyBatis Plus的分页插件类
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
// 导入MyBatis的参数注解用于标识方法参数
import org.apache.ibatis.annotations.Param;
// 导入新闻视图实体类,用于展示层数据
import com.entity.view.NewsView;
// 健身资讯 Dao 接口
//定义数据库访问层操作方法
// @author // 作者信息(未填写)
public interface NewsDao extends BaseMapper<NewsEntity> {
//分页查询新闻资讯列表视图
//@param page 分页参数对象,包含当前页、每页数量等信息
// @param params 查询条件参数Map集合
// @return 返回新闻视图对象列表
List<NewsView> selectListView(Pagination page,@Param("params")Map<String,Object> params);
}