package ink.wgink.module.activiti.dao.oa;

import ink.wgink.exceptions.RemoveException;
import ink.wgink.exceptions.SaveException;
import ink.wgink.exceptions.SearchException;
import ink.wgink.exceptions.UpdateException;
import ink.wgink.interfaces.init.IInitBaseTable;
import ink.wgink.module.activiti.pojo.dtos.oa.NodeButtonDTO;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
 * @ClassName: INodeButtonDao
 * @Description: 节点按钮
 * @Author: wanggeng
 * @Date: 2022/4/27 11:00
 * @Version: 1.0
 */
@Repository
public interface INodeButtonDao extends IInitBaseTable {

    /**
     * 新增配置
     *
     * @param params
     * @throws SaveException
     */
    void save(Map<String, Object> params) throws SaveException;

    /**
     * 删除配置
     *
     * @param params
     * @throws RemoveException
     */
    void delete(Map<String, Object> params) throws RemoveException;

    /**
     * 更新部署ID
     *
     * @param params
     * @throws UpdateException
     */
    void updateDeploymentId(Map<String, Object> params) throws UpdateException;

    /**
     * 详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    NodeButtonDTO get(Map<String, Object> params) throws SearchException;

}
