package com.ruoyi.system.service; import com.ruoyi.system.domain.SysTaskAttachment; import org.springframework.web.multipart.MultipartFile; import java.util.List; public interface ISysTaskAttachmentService { Long uploadAttachment(Long taskId, MultipartFile file, String category); Long uploadAttachmentFromWechat(Long taskId, String accessToken, String mediaId, String category); int deleteAttachment(Long attachmentId); SysTaskAttachment getAttachmentById(Long attachmentId); List getAttachmentsByTaskId(Long taskId); /** * 获取附件分类描述 * * @param category 附件分类代码 * @return 分类描述 */ String getCategoryDesc(String category); /** * 构建附件的完整URL * * @param attachment 附件对象 */ void buildAttachmentUrl(SysTaskAttachment attachment); }