cm-cloud/cloud-common/src/main/java/com/cm/common/dao/IEnvDao.java
2023-04-18 10:22:27 +08:00

58 lines
1.1 KiB
Java

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<String, Object> params) throws SaveException;
/**
* 修改
*
* @param params
* @throws UpdateException
*/
void update(Map<String, Object> params) throws UpdateException;
/**
* 删除
*
* @throws RemoveException
*/
void delete() throws RemoveException;
/**
* 列表
*
* @return
* @throws SearchException
*/
List<EnvDTO> list() throws SearchException;
/**
* 详情
*
* @param envKey
* @return
* @throws SearchException
*/
EnvDTO get(String envKey) throws SearchException;
}