package cn.orionsec.ops.dao;

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

public interface ApplicationEnvDAO extends BaseMapper<ApplicationEnvDO> {

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

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

}
