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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
package cn.wisenergy.service.app;
import cn.wisenergy.common.utils.R;
import cn.wisenergy.model.dto.ShopZxUserDto;
import cn.wisenergy.model.vo.ShopZxUserVo;
import com.github.pagehelper.PageInfo;
import org.springframework.core.io.Resource;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletRequest;
import java.util.Map;
/**
* Created by m1991 on 2021/2/24 13:49
* TODO 资讯Service
* @author 86187
*/
public interface UploadService {
/**
* TODO 视频文件上传 zxUrl, userId,zxName,zxField,imgUrl
* @param request
* @return
*/
Map<String, Object> uploadVideo(MultipartFile file,HttpServletRequest request,String zxField,String inviteCode) throws Exception;
/**
* TODO 用户头像上传
*
* @return
*/
Map<String, Object> uploadImage(MultipartFile file,String inviteCode) throws Exception;
/**
* TODO 多文件上传
* @param file
* @return
*/
Map imageUpload(MultipartFile[] file, String zxField, String inviteCode);
String storeFile(MultipartFile file);
Resource loadFileAsResource(String fileName);
/**
* TODO 资讯已审核信息展示
* @param pageNum
* @param pageSize
* @return
*/
Map selectPage(int pageNum, int pageSize,String inviteCode);
/**
* TODO 资讯单表分页全部信息展示
* @param shopZxUserDto
* @return
*/
R<PageInfo<ShopZxUserVo>> getShopZxUserList(ShopZxUserDto shopZxUserDto);
/**
* TODO 资讯点赞
* @param zxid
* @return
*/
Map Ilike(Integer zxid,String inviteCode);
/**
* TODO 资讯审核
* @param zxid
* @return
*/
Map toExamine(Integer zxid,Integer approval);
}