package com.reading.platform.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.reading.platform.dto.request.TenantCreateRequest;
import com.reading.platform.dto.request.TenantUpdateRequest;
import com.reading.platform.dto.response.TenantResponse;
import com.reading.platform.entity.Tenant;

import java.util.List;

/**
 * 租户服务接口
 */
public interface TenantService {

    Tenant createTenant(TenantCreateRequest request);

    Tenant updateTenant(String id, TenantUpdateRequest request);

    Tenant getTenantById(String id);

    Page<Tenant> getTenantPage(Integer pageNum, Integer pageSize, String keyword, String status);

    void deleteTenant(String id);

    List<TenantResponse> getAllActiveTenants();

    String resetSchoolAccountPassword(String tenantId);

}
