package cn.orionsec.ops.dao;

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

public interface SystemEnvDAO extends BaseMapper<SystemEnvDO> {

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

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

}
