package cn.orionsec.ops.dao;

import cn.orionsec.ops.entity.domain.MachineEnvDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

public interface MachineEnvDAO extends BaseMapper<MachineEnvDO> {

    /**
     * 查询一条数据
     *
     * @param machineId machineId
     * @param key       key
     * @return env
     */
    MachineEnvDO selectOneRel(@Param("machineId") Long machineId, @Param("key") String key);

    /**
     * 设置删除
     *
     * @param id      id
     * @param deleted deleted
     * @return effect
     */
    Integer setDeleted(@Param("id") Long id, @Param("deleted") Integer deleted);

}
