package com.ruoyi.web.service;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.web.domain.dto.warning.earthquakeWarning.EarthquakeWarningAddRequest;
import com.ruoyi.web.domain.dto.warning.earthquakeWarning.EarthquakeWarningEditRequest;
import com.ruoyi.web.domain.dto.warning.earthquakeWarning.EarthquakeWarningQueryRequest;
import com.ruoyi.web.domain.entity.EarthquakeWarning;
import com.ruoyi.web.domain.vo.EarthquakeWarningVO;

/**
 *
 */
public interface EarthquakeWarningService extends IService<EarthquakeWarning> {

    Integer addEarthquakeWarning(EarthquakeWarningAddRequest earthquakeWarningAddRequest);

    boolean deleteEarthquakeWarning(String ids);

    void editEarthquakeWarning(EarthquakeWarningEditRequest earthquakeWarningEditRequest);

    /**
     * 根据id获取
     *
     * @param id
     * @return
     */
    EarthquakeWarningVO getEarthquakeWarningById(int id);

    EarthquakeWarningVO getEarthquakeWarningVO(EarthquakeWarning earthquakeWarning);

    /**
     * 分页获取列表
     *
     * @param earthquakeWarningQueryRequest
     * @return
     */
    Page<EarthquakeWarningVO> getListEarthquakeWarningByPage(EarthquakeWarningQueryRequest earthquakeWarningQueryRequest);

    /**
     * 获取查询条件
     *
     * @param earthquakeWarningQueryRequest
     * @return
     */
    QueryWrapper<EarthquakeWarning> getQueryWrapper(EarthquakeWarningQueryRequest earthquakeWarningQueryRequest);

}
