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.NodeFieldDTO;
import org.springframework.stereotype.Repository;

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

/**
 * @Description: 表单字段与流程节点
 * @Author: WenG
 * @Date: 2022/3/17 20:09
 * @Version: 1.0
 **/
@Repository
public interface INodeFieldDao 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;

    /**
     * 更新
     *
     * @param params
     * @throws UpdateException
     */
    void update(Map<String, Object> params) throws UpdateException;

    /**
     * 更新部署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
     */
    List<NodeFieldDTO> listNode(Map<String, Object> params) throws SearchException;

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


}
