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

licc's avatar
licc committed
3

4 5 6 7
import cn.wisenergy.common.utils.R;
import cn.wisenergy.model.dto.ShopZxUserDto;
import cn.wisenergy.model.vo.ShopZxUserVo;
import com.github.pagehelper.PageInfo;
8
import org.springframework.core.io.Resource;
9 10 11 12 13 14 15
import org.springframework.web.multipart.MultipartFile;

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

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

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

34 35 36 37 38 39

    /**
     * TODO 多文件上传
     * @param file
     * @return
     */
40
     Map imageUpload(MultipartFile[] file, String zxField, String inviteCode);
41 42 43 44




45 46
     String storeFile(MultipartFile file);
     Resource loadFileAsResource(String fileName);
47

48

49
    /**
50
     * TODO 资讯已审核信息展示
51 52
     * @param pageNum
     * @param pageSize
53 54
     * @return
     */
55
    Map selectPage(int pageNum, int pageSize,String inviteCode);
56

57 58
    /**
     * TODO 资讯单表分页全部信息展示
59
     * @param shopZxUserDto
60 61
     * @return
     */
62
    R<PageInfo<ShopZxUserVo>> getShopZxUserList(ShopZxUserDto shopZxUserDto);
63

64 65 66 67 68
    /**
     * TODO 资讯点赞
     * @param zxid
     * @return
     */
69
    Map Ilike(Integer zxid,String inviteCode);
70

71 72 73 74 75
    /**
     * TODO 资讯审核
     * @param zxid
     * @return
     */
76
    Map toExamine(Integer zxid,Integer approval);
77

78 79

}