package com.reading.platform.service;

import com.baomidou.mybatisplus.extension.service.IService;
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 extends IService<Parent> {

    Parent createParent(String tenantId, ParentCreateRequest request);

    Parent updateParent(String id, ParentUpdateRequest request);

    Parent getParentById(String id);

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

    void deleteParent(String id);

    void resetPassword(String id, String newPassword);

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

    void unbindStudent(String parentId, String studentId);

}
