UploadService.java 1.41 KB
Newer Older
1 2
package cn.wisenergy.service.app;

licc's avatar
licc committed
3

4
import org.springframework.core.io.Resource;
5 6 7 8 9 10 11 12
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * Created by m1991 on 2021/2/24 13:49
13
 * TODO 资讯Service
licc's avatar
licc committed
14
 * @author 86187
15 16 17
 */
public interface UploadService {
    /**
18
     * TODO 视频文件上传   zxUrl, userId,zxName,zxField,imgUrl
19 20 21
     * @param request
     * @return
     */
22
     Map<String, Object> uploadVideo(MultipartFile file,HttpServletRequest request,String zxField,String zxAddress,String inviteCode) throws Exception;
23 24

    /**
25 26
     * TODO 用户头像上传
     *
27 28
     * @return
     */
29
     Map<String, Object> uploadImage(MultipartFile file) throws Exception;
30

31 32 33 34 35 36

    /**
     * TODO 多文件上传
     * @param file
     * @return
     */
37
     List imageUpload( MultipartFile[] file, String zxField, String zxAddress,String inviteCode);
38 39 40 41




42 43
     String storeFile(MultipartFile file);
     Resource loadFileAsResource(String fileName);
44

45

46
    /**
47 48 49
     * TODO 资讯信息展示
     * @param pageNum
     * @param pageSize
50 51
     * @return
     */
52
    Map selectPage(Integer pageNum, Integer pageSize);
53

54 55 56 57 58
    /**
     * TODO 资讯点赞
     * @param zxid
     * @return
     */
59
    Map Ilike(Integer zxid,String inviteCode);
60

61 62 63 64 65 66 67
    /**
     * TODO 资讯审核
     * @param zxid
     * @return
     */
    Map toExamine(Integer zxid);

68 69

}