UploadService.java 1.39 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
import org.springframework.web.multipart.MultipartFile;

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

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

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

30 31 32 33 34 35

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




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

44

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

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

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

67 68

}