package com.aiotagro.cattletrade.business.service;

import com.aiotagro.cattletrade.business.dto.DeliveryQueryDto;
import com.aiotagro.cattletrade.business.dto.DeliverListDto;
import com.aiotagro.cattletrade.business.entity.WarningLog;
import com.aiotagro.common.core.web.domain.AjaxResult;
import com.aiotagro.cattletrade.business.vo.DeliveryLogVo;
import com.aiotagro.common.core.web.domain.PageResultResponse;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 预警记录表 服务类
 * </p>
 *
 * @author admin
 * @since 2024-12-26
 */
public interface IWarningLogService extends IService<WarningLog> {

    /**
     * 供远程调用-保存预警日志
     *
     * @param deviceId
     * @return
     */
    AjaxResult savaWarn(String deviceId);

    AjaxResult warningCount();

    PageResultResponse<DeliveryLogVo> queryList(DeliveryQueryDto dto);

    /**
     * 预警详情查看
     * @param id
     * @return
     */
    AjaxResult warningDetail(Integer id);

}
