From 17badd7ea4d77c0aafbdfa65e05743cb7856489c Mon Sep 17 00:00:00 2001 From: chenhj <chenhj@lunor.cn> Date: 星期五, 30 五月 2025 14:40:58 +0800 Subject: [PATCH] Merge pull request 'chen' (#12) from chen into master --- ruoyi-common/src/main/java/com/ruoyi/basic/service/StorageAttachmentService.java | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 43 insertions(+), 0 deletions(-) diff --git a/ruoyi-common/src/main/java/com/ruoyi/basic/service/StorageAttachmentService.java b/ruoyi-common/src/main/java/com/ruoyi/basic/service/StorageAttachmentService.java new file mode 100644 index 0000000..bcf9d31 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/basic/service/StorageAttachmentService.java @@ -0,0 +1,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); +} -- Gitblit v1.9.3