package com.yuchen.saas.park.service.service.elevator;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yuchen.saas.park.api.entity.elevator.SaasParkElevatorRecordInoutRecordsEntity;
import com.yuchen.saas.park.api.request.ElevatorInOrOutRecordsRequest;
import com.yuchen.saas.park.api.response.ElevatorInOrOutRecordsResponse;
import org.nest.springwrap.core.mp.support.Query;
import org.nest.springwrap.core.tool.api.R;

/**
 * <p>
 * saas_park_elevator_record_inout_records 服务类
 * </p>
 *
 * @author baichaojie
 * @since 2024-06-25
 */
public interface ISaasParkElevatorRecordInoutRecordsService extends IService<SaasParkElevatorRecordInoutRecordsEntity> {
    /**
     * 梯控-记录事件-权限下发-通行事件记录
     * @param reqDTO
     * @param query
     * @return
     */
    R<IPage<ElevatorInOrOutRecordsResponse>> elevatorInOrOutRecords(ElevatorInOrOutRecordsRequest reqDTO, Query query);

    /**
     * 梯控进出状态事件
     * @param jsonObjectContent
     * @return
     * @throws Exception
     */
    boolean receiveIotEvent(String jsonObjectContent) throws Exception;
}
