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

import com.baomidou.mybatisplus.extension.service.IService;
import com.yuchen.saas.park.api.dto.park.IoTEvent;
import com.yuchen.saas.park.api.entity.security.SaasParkElectronicFenceAlarmEvent;

import java.util.List;

/**
 * <p>
 * 电子围栏报警事件表 服务类
 * </p>
 *
 * @author 洪铭铭
 * @since 2024-09-06
 */
public interface ISaasParkElectronicFenceAlarmEventService extends IService<SaasParkElectronicFenceAlarmEvent> {
    List<SaasParkElectronicFenceAlarmEvent> getAll();

    /**
     * @description:
     * @param jsonObjectContent
     * @return: boolean
     * @author: 洪铭铭
     * @time: 2024/9/9 9:23
     */
    boolean receiveIotEvent(String jsonObjectContent) throws Exception;

    void saveAlarmEvent(IoTEvent ioTEvent);
}
