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

import com.cm.common.exception.RemoveException;
import com.cm.common.exception.SaveException;
import com.cm.common.plugin.pojo.vos.authority.AuthorityUserVO;

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

    /**
     * 新增人员权限
     *
     * @param authorityUserVO
     * @throws SaveException
     */
    void saveAuthorityUser(AuthorityUserVO authorityUserVO) throws Exception;

    /**
     * 删除人员权限
     *
     * @param userId
     * @throws RemoveException
     */
    void deleteAuthorityUserByUserId(String userId) throws RemoveException;

}
