liyong
4 天以前 d62a74c14a4002c0f401c94976fba8cc77cda6e1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package cn.iocoder.yudao.module.system.service.storage;
 
import cn.iocoder.yudao.module.system.controller.admin.storage.vo.SystemStorageAttachmentListReqVO;
import cn.iocoder.yudao.module.system.controller.admin.storage.vo.SystemStorageAttachmentSaveReqVO;
import cn.iocoder.yudao.module.system.controller.admin.storage.vo.SystemStorageBlobRespVO;
 
import java.util.List;
 
/**
 * 文件关联表 Service 接口
 *
 * @author 芋道源码
 */
public interface SystemStorageAttachmentService {
 
    /**
     * 保存附件关联信息
     */
    void bindAttachments(SystemStorageAttachmentSaveReqVO reqVO);
 
    /**
     * 查询附件列表
     *
     * @param reqVO 查询条件
     * @return 文件列表(含预览/下载地址)
     */
    List<SystemStorageBlobRespVO> listAttachments(SystemStorageAttachmentListReqVO reqVO);
 
    /**
     * 批量删除附件
     *
     * @param ids 附件ID列表
     */
    void deleteAttachments(List<Long> ids);
 
    /**
     * 删除指定用途、指定业务记录下的附件关系
     */
    void deleteAttachmentsByApplicationAndRecordTypeAndRecordId(String application, String recordType, Long recordId);
 
    /**
     * 删除指定业务记录下全部附件关系,不区分用途
     */
    void deleteAttachmentsByRecordTypeAndRecordId(String recordType, Long recordId);
 
    /**
     * 按多个业务id批量删除附件关系
     */
    void deleteAttachmentsByApplicationAndRecordTypeAndRecordIds(String application, String recordType, List<Long> recordIds);
 
}