chenhj
4 天以前 4d70e622d2f1786c2ef25fa732bbcec599fe8b14
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
package com.ruoyi.basic.service;
 
import com.ruoyi.basic.entity.StorageAttachment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.constant.StorageAttachmentConstants;
import com.ruoyi.common.enums.StorageAttachmentRecordType;
 
import java.util.List;
 
/**
 * <p>
 * 通用文件上传的附件信息 服务类
 * </p>
 *
 * @author ruoyi
 * @since 2025-05-29
 */
public interface StorageAttachmentService extends IService<StorageAttachment> {
    /**
     * 查询通用文件上传的附件信息
     * @param recordId 关联记录id
     * @param recordType 关联记录类型
     * @param fileType 文件类型
     * @return 文件信息列表
     */
    List<StorageAttachment> selectStorageAttachments(Long recordId, StorageAttachmentRecordType recordType, StorageAttachmentConstants fileType);
 
    /**
     * 保存通用文件上传的附件信息
     * @param attachments 文件信息列表
     * @param recordId 管理记录id
     * @param recordType 关联记录类型
     * @param fileType 文件类型
     */
    public void saveStorageAttachment(List<StorageAttachment> attachments, Long recordId, StorageAttachmentRecordType recordType, StorageAttachmentConstants fileType);
 
    /**
     * 删除通用文件上传的附件信息
     * @param storageAttachment 文件信息
     * @return 删除结果
     */
    public int deleteStorageAttachment(StorageAttachment storageAttachment);
}