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/JianshenkechengService.java

42 lines
2.0 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.JianshenkechengEntity; // 导入健身课程实体类
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 JianshenkechengService extends IService<JianshenkechengEntity> {
// 分页查询健身课程信息
//@param params 查询参数Map包含以下常用键值
// - page当前页码从1开始
// - limit每页记录数
// - courseName课程名称模糊查询
// - courseType课程类型
// - coachId授课教练ID
// - status课程状态1-可预约0-已满员)
// - startTime课程开始时间
// - endTime课程结束时间
//@return PageUtils分页对象包含
// - list当前页课程数据列表
// - totalCount总记录数
// - pageSize每页条数
// - totalPage总页数
// - currPage当前页码
PageUtils queryPage(Map<String, Object> params);
// 可扩展的业务方法示例:
// List<JianshenkechengEntity> getPopularCourses(int limit); // 获取热门课程
// boolean updateCourseStatus(Long courseId, Integer status); // 更新课程状态
// List<JianshenkechengEntity> getCoursesByCoach(Long coachId); // 按教练查询课程
// List<JianshenkechengEntity> getAvailableCourses(Date date); // 获取可预约课程
}