package ink.wgink.common.dao.access;

import ink.wgink.exceptions.RemoveException;
import ink.wgink.exceptions.SaveException;
import ink.wgink.exceptions.SearchException;
import ink.wgink.interfaces.init.IInitBaseTable;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @ClassName: IWhiteListDao
 * @Description: 白名单
 * @Author: wanggeng
 * @Date: 2022/7/27 14:05
 * @Version: 1.0
 */
@Repository
public interface IWhiteListDao extends IInitBaseTable {

    /**
     * 保存白名单
     *
     * @param params
     * @throws SaveException
     */
    void save(Map<String, Object> params) throws SaveException;

    /**
     * 删除白名单
     *
     * @throws RemoveException
     */
    void delete() throws RemoveException;

    /**
     * 白名单列表
     *
     * @return
     * @throws SearchException
     */
    List<String> list() throws SearchException;

}
