package com.yonge.cooleshow.biz.dal.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yonge.cooleshow.auth.api.entity.SysUser;
import com.yonge.cooleshow.biz.dal.dto.search.StudentSearch;
import com.yonge.cooleshow.biz.dal.entity.Student;
import com.yonge.cooleshow.biz.dal.vo.StudentHomeVo;
import com.yonge.cooleshow.biz.dal.vo.StudentTotalVo;
import com.yonge.cooleshow.biz.dal.vo.StudentVo;

import java.util.List;

/**
 * 学生表 服务类
 * @author liweifan
 * @date 2022-03-23
 */
public interface StudentService extends IService<Student>  {
    /***
     * 查询学员详情
     * @author liweifan
     * @param: userId
     * @updateTime 2022/3/23 17:49
     * @return: com.yonge.cooleshow.biz.dal.vo.TeacherVo
     */
    StudentVo detail(Long userId);
    /**
     * 自定义分页
     * @author liweifan
 	 * @date 2022-03-23
     */
    IPage<StudentVo> selectPage(IPage<StudentVo> page, StudentSearch studentSearch);

    /***
     * 查询学生端首页用户信息
     * @author liweifan
     * @param: user
     * @updateTime 2022/3/29 15:00
     * @return: com.yonge.cooleshow.biz.dal.vo.StudentHomeVo
     */
    StudentHomeVo queryUserInfo(SysUser user);

    /***
     * 设置声部
     * @author liweifan
     * @param: id
     * @param: toLongList
     * @updateTime 2022/4/7 9:56
     * @return: java.lang.Integer
     */
    Integer setSubject(Long id, String subjectIds);
}