| | |
| | | import javax.annotation.Resource;
|
| | |
|
| | | import org.springframework.stereotype.Service;
|
| | | import org.springframework.web.multipart.commons.CommonsMultipartFile;
|
| | | import org.springframework.web.multipart.MultipartFile;
|
| | | import org.yeshi.utils.tencentcloud.COSManager;
|
| | |
|
| | | import com.yeshi.fanli.dao.mybatis.user.UserComplaintMapper;
|
| | |
| | | private UserComplaintMapper userComplaintMapper;
|
| | |
|
| | | @Override
|
| | | public void addUserComplaint(List<CommonsMultipartFile> fileList, Long uid, String content) |
| | | public void addUserComplaint(List<MultipartFile> fileList, Long uid, String content) |
| | | throws UserComplaintException, IOException, Exception {
|
| | |
|
| | | if (content == null || content.trim().length() == 0) {
|
| | |
| | |
|
| | | JSONArray array = new JSONArray();
|
| | | // 文件上传
|
| | | for (CommonsMultipartFile file: fileList) {
|
| | | for (MultipartFile file: fileList) {
|
| | |
|
| | | InputStream inputStream = file.getInputStream();
|
| | | String contentType = file.getContentType();
|