| 123456789101112131415161718192021222324252627282930313233 |
- package com.aijiuyi.admin.service;
- import com.aijiuyi.admin.controller.dto.UserPlanQueryDTO;
- import com.aijiuyi.admin.entity.UserPlan;
- import com.baomidou.mybatisplus.core.metadata.IPage;
- import com.baomidou.mybatisplus.extension.service.IService;
- /**
- * 用户方案 Service 接口
- */
- public interface UserPlanService extends IService<UserPlan> {
- IPage<UserPlan> pageList(UserPlanQueryDTO queryDTO);
- /**
- * 根据用户ID分页查询方案列表
- *
- * @param userId 用户ID
- * @param pageNum 当前页码(从1开始)
- * @param pageSize 每页条数
- * @return 分页结果
- */
- IPage<UserPlan> pageByUserId(Long userId, Integer pageNum, Integer pageSize);
- /**
- * 查询用户方案详情
- *
- * @param id 用户方案ID
- * @return 用户方案详情
- */
- UserPlan getDetail(Long id);
- }
|