wlzboy
7 小时以前 5f2ee03958a1a16dc27195c76ea7cffb422c95d1
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
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<SysTaskAttachment> getAttachmentsByTaskId(Long taskId);
 
    /**
     * 获取附件分类描述
     * 
     * @param category 附件分类代码
     * @return 分类描述
     */
    String getCategoryDesc(String category);
 
    /**
     * 构建附件的完整URL
     * 
     * @param attachment 附件对象
     */
    void buildAttachmentUrl(SysTaskAttachment attachment);
}