package cn.orionsec.ops.dao;

import cn.orionsec.ops.entity.domain.MachineMonitorDO;
import cn.orionsec.ops.entity.dto.MachineMonitorDTO;
import cn.orionsec.ops.entity.query.MachineMonitorQuery;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MachineMonitorDAO extends BaseMapper<MachineMonitorDO> {

    /**
     * 查询列表
     *
     * @param query query
     * @param last  last sql
     * @return rows
     */
    List<MachineMonitorDTO> selectMonitorList(@Param("query") MachineMonitorQuery query, @Param("last") String last);

    /**
     * 查询条数
     *
     * @param query query
     * @return count
     */
    Integer selectMonitorCount(@Param("query") MachineMonitorQuery query);

}
