package com.reading.platform.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.reading.platform.dto.request.StudentCreateRequest;
import com.reading.platform.dto.request.StudentUpdateRequest;
import com.reading.platform.entity.Student;

import java.util.List;

/**
 * Student Service Interface
 */
public interface StudentService {

    Student createStudent(Long tenantId, StudentCreateRequest request);

    Student updateStudent(Long id, StudentUpdateRequest request);

    Student getStudentById(Long id);

    Page<Student> getStudentPage(Long tenantId, Integer pageNum, Integer pageSize, String keyword, String grade, String status);

    Page<Student> getStudentsByClassId(Long classId, Integer pageNum, Integer pageSize);

    void deleteStudent(Long id);

    List<Student> getStudentsByParentId(Long parentId);

}
