package cn.fateverse.workflow.service;

import cn.fateverse.workflow.entity.bpmn.Attachment;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author Clay
 * @date 2023/1/10
 */
public interface ProcessFileService {

    /**
     * 上传文件
     *
     * @param file 文件对象
     * @throws Exception
     */
    Attachment uploadFile(MultipartFile file) throws Exception;

    /**
     * 删除文件
     *
     * @param fileId 文件id
     */
    void deleteFile(Long fileId);
}
