| | |
| | | package com.ruoyi.basic.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.basic.dto.StorageAttachmentDTO; |
| | | import com.ruoyi.basic.dto.StorageAttachmentVO; |
| | | import com.ruoyi.basic.dto.StorageBlobDTO; |
| | | import com.ruoyi.basic.dto.StorageBlobVO; |
| | | import com.ruoyi.basic.enums.ApplicationTypeEnum; |
| | | import com.ruoyi.basic.enums.RecordTypeEnum; |
| | | import com.ruoyi.basic.pojo.StorageAttachment; |
| | | import com.ruoyi.common.constant.StorageAttachmentConstants; |
| | | import com.ruoyi.common.enums.StorageAttachmentRecordType; |
| | |
| | | * @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); |
| | | public void saveStorageAttachment(StorageAttachmentDTO storageAttachmentDTO); |
| | | |
| | | /** |
| | | * 分页查询通用文件上传的附件信息 |
| | | * @param storageAttachmentDTO 关联记录信息 |
| | | * @return 分页结果 |
| | | */ |
| | | public List<StorageBlobVO> list(StorageAttachmentDTO storageAttachmentDTO); |
| | | |
| | | /** |
| | | * 删除通用文件上传的附件信息 |
| | |
| | | * @return 删除结果 |
| | | */ |
| | | public int deleteStorageAttachment(StorageAttachment storageAttachment); |
| | | |
| | | /** |
| | | * 批量删除通用文件上传的附件信息 |
| | | * @param ids 文件id列表 |
| | | * @return 删除结果 |
| | | */ |
| | | public int batchDeleteStorageAttachment(List<Long> ids); |
| | | } |