package com.cm.common.dao; import com.cm.common.exception.RemoveException; import com.cm.common.exception.SaveException; import com.cm.common.exception.SearchException; import com.cm.common.exception.UpdateException; import com.cm.common.pojo.dtos.env.EnvDTO; import org.springframework.stereotype.Repository; import java.util.List; import java.util.Map; @Repository public interface IEnvDao { /** * 新增 * * @param params * @throws SaveException */ void save(Map params) throws SaveException; /** * 修改 * * @param params * @throws UpdateException */ void update(Map params) throws UpdateException; /** * 删除 * * @throws RemoveException */ void delete() throws RemoveException; /** * 列表 * * @return * @throws SearchException */ List list() throws SearchException; /** * 详情 * * @param envKey * @return * @throws SearchException */ EnvDTO get(String envKey) throws SearchException; }