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.
gymnasium/src/main/java/com/service/JianshenkechengCollectionSe...

39 lines
1.9 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.

package com.service; // 定义包路径为com.service表示该接口属于服务层
import com.baomidou.mybatisplus.service.IService; // 导入MyBatis-Plus服务接口
import com.utils.PageUtils; // 导入分页工具类
import com.entity.JianshenkechengCollectionEntity; // 导入课程收藏实体类
import java.util.Map; // 导入Map接口用于参数传递
import javax.servlet.http.HttpServletRequest; // 导入HTTP请求类保留参数
import org.springframework.lang.Nullable; // 导入Spring的Nullable注解保留参数
import java.util.List; // 导入List接口保留参数
// 健身课程收藏服务接口
//继承MyBatis-Plus的IService接口提供课程收藏相关业务方法
public interface JianshenkechengCollectionService extends IService<JianshenkechengCollectionEntity> {
// 分页查询课程收藏记录
//@param params 查询参数Map包含以下常用键值
// - page当前页码从1开始
// - limit每页记录数
// - userId用户ID筛选特定用户的收藏
// - courseId课程ID筛选特定课程的收藏
// - collectionTime收藏时间时间范围查询
//@return PageUtils分页对象包含
// - list当前页收藏记录列表
// - totalCount总记录数
// - pageSize每页条数
// - totalPage总页数
// - currPage当前页码
PageUtils queryPage(Map<String, Object> params);
// 可扩展的业务方法示例:
// boolean addCollection(Long userId, Long courseId); // 添加收藏
// boolean cancelCollection(Long collectionId); // 取消收藏
// boolean checkCollected(Long userId, Long courseId); // 检查是否已收藏
// List<Long> getUserCollectionIds(Long userId); // 获取用户收藏课程ID列表
}