package com.reading.platform.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.reading.platform.dto.request.ParentCreateRequest;
import com.reading.platform.dto.request.ParentUpdateRequest;
import com.reading.platform.entity.Parent;

import java.util.List;

/**
 * Parent Service Interface
 */
public interface ParentService {

    Parent createParent(Long tenantId, ParentCreateRequest request);

    Parent updateParent(Long id, ParentUpdateRequest request);

    Parent getParentById(Long id);

    Page<Parent> getParentPage(Long tenantId, Integer pageNum, Integer pageSize, String keyword, String status);

    void deleteParent(Long id);

    void resetPassword(Long id, String newPassword);

    void bindStudent(Long parentId, Long studentId, String relationship, Boolean isPrimary);

    void unbindStudent(Long parentId, Long studentId);

}
