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


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yuchen.saas.park.api.dto.door.DoorDeviceEventDTO;
import com.yuchen.saas.park.api.entity.door.DoorDeviceEvent;
import org.nest.springwrap.core.mp.support.NestPage;

/**
 * <p>
 * 设备事件 服务类
 * </p>
 *
 * @author miaoqs
 * @since 2023-12-20
 */
public interface DoorDeviceEventService extends IService<DoorDeviceEvent> {

    /**
     * 分页查询
     * @param page
     * @param req
     * @return
     */
    NestPage<DoorDeviceEvent> paramPage(Page<DoorDeviceEvent> page, DoorDeviceEventDTO req);

    /**
     * 接收设备事件
     * @param doorEventInfoJson
     * @return
     */
    boolean receiveIotDoorEventInfo(String doorEventInfoJson);
}
