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

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yuchen.saas.park.api.dto.security.WarningAddDTO;
import com.yuchen.saas.park.api.dto.security.WarningPageQueryDTO;
import com.yuchen.saas.park.api.entity.park.PmgBatSecurityWarning;
import com.yuchen.saas.park.api.vo.park.security.LatestWarningQueryVO;
import com.yuchen.saas.park.api.vo.park.security.SecurityWarningVO;
import com.yuchen.saas.park.api.vo.park.security.WarningTrendVO;
import org.nest.springwrap.core.mp.base.BaseService;
import org.nest.springwrap.core.mp.support.Query;

import java.util.List;

/**
 * @author 颜艺波
 * @date 2022/6/24 17:19
 * @Description
 */
public interface PmgBatSecurityWarningService extends BaseService<PmgBatSecurityWarning> {

    /**
     * 今日预警发生趋势
     * @param parkId
     * @return
     */
    List<WarningTrendVO> warningTrendToday(Long parkId);

    /**
     * 安防最新预警行为查询
     * @param parkId
     * @return
     */
    LatestWarningQueryVO latestWarningQuery(Long parkId);

    /**
     * 安防预警行为分页查询
     * @param warningPageQueryDTO
     * @param query
     * @return
     */
    IPage<SecurityWarningVO> warningPageQuery(WarningPageQueryDTO warningPageQueryDTO, Query query);

    /**
     * 安防预警行为新增
     * @param warningAddDTO
     * @return
     */
    Boolean add(WarningAddDTO warningAddDTO);

}
