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.pos.oa.OaNodeAssigneePO;
import org.springframework.stereotype.Repository;

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

/**
 * @ClassName: INodeAssigneeDao
 * @Description: 节点代理人
 * @Author: wanggeng
 * @Date: 2022/4/4 15:18
 * @Version: 1.0
 */
@Repository
public interface INodeAssigneeDao 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;

    /**
     * 删除部署ID
     *
     * @param deploymentId
     * @throws UpdateException
     */
    void deleteDeploymentId(String deploymentId) throws UpdateException;

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

    /**
     * 列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<OaNodeAssigneePO> listPO(Map<String, Object> params) throws SearchException;

}
