package com.cm.common.plugin.dao.authority;

import com.cm.common.exception.RemoveException;
import com.cm.common.exception.SaveException;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
 * When you feel like quitting. Think about why you started
 * 当你想要放弃的时候，想想当初你为何开始
 *
 * @ClassName: IAuthorityDao
 * @Description: 权限
 * @Author: WangGeng
 * @Date: 2019/12/14 11:01 上午
 * @Version: 1.0
 **/
@Repository
public interface IAuthorityDao {

    /**
     * 新增人员权限
     *
     * @param params
     * @throws SaveException
     */
    void saveAuthorityUser(Map<String, Object> params) throws SaveException;

    /**
     * 删除人员权限
     *
     * @param params
     * @throws RemoveException
     */
    void deleteAuthorityUser(Map<String, Object> params) throws RemoveException;
}
